diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-28 13:56:25 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-28 13:56:25 +0000 |
commit | dba61c45e60c88f60b3d315fb083369a7ebaf2b2 (patch) | |
tree | ad267cc7d745c4887763aefeafb2004ff147f1b8 /includes/module.inc | |
parent | f58a4c7206998030c604f86ea32e58f5f3986e55 (diff) | |
download | brdo-dba61c45e60c88f60b3d315fb083369a7ebaf2b2.tar.gz brdo-dba61c45e60c88f60b3d315fb083369a7ebaf2b2.tar.bz2 |
#599122 follow-up by scor and catch: Do not use module_load_include() in global context.
Diffstat (limited to 'includes/module.inc')
-rw-r--r-- | includes/module.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/module.inc b/includes/module.inc index 25b33011a..aa031b3ca 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -245,7 +245,9 @@ function module_load_install($module) { * module_load_include('inc', 'node', 'content_types'); * @endcode * - * Do not use this function to load an install file. Use module_load_install() + * Do not use this function to load an install file, use module_load_install() + * instead. Do not use this function in a global context since it requires + * Drupal to be fully bootstrapped, use require_once DRUPAL_ROOT . '/path/file' * instead. * * @param $type |