[development] Proper method for including external libraries

Johan Forngren johan at forngren.com
Wed Oct 11 18:00:22 UTC 2006


I think you can safely include it when you need it.

On 10/11/06, Joseph Bratton <jbratton at c2fs.com> wrote:
>
>  Quick question, what is the "proper" method for including external
> libraries within a drupal module?  Should I place a require_once at the top
> of the module, or just at the beginning of any functions within the module
> that use that library?  Once at the top of the module is cleaner, but it
> also means that it is loaded on every page, whether it is actually used or
> not.
>
>
>
> Thanks,
>
> Joey
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20061011/7f16c915/attachment.htm 


More information about the development mailing list