summaryrefslogtreecommitdiff
path: root/modules/file/file.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-28 13:56:25 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-28 13:56:25 +0000
commitdba61c45e60c88f60b3d315fb083369a7ebaf2b2 (patch)
treead267cc7d745c4887763aefeafb2004ff147f1b8 /modules/file/file.module
parentf58a4c7206998030c604f86ea32e58f5f3986e55 (diff)
downloadbrdo-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 'modules/file/file.module')
-rw-r--r--modules/file/file.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/file/file.module b/modules/file/file.module
index bbf98f073..1b56ea595 100644
--- a/modules/file/file.module
+++ b/modules/file/file.module
@@ -6,6 +6,9 @@
* Defines a "managed_file" Form API field and a "file" field for Field module.
*/
+// Load all Field module hooks for File.
+require_once DRUPAL_ROOT . '/modules/file/file.field.inc';
+
/**
* Implements hook_help().
*/
@@ -28,9 +31,6 @@ function file_help($path, $arg) {
}
}
-// Load all Field module hooks for File.
-module_load_include('inc', 'file', 'file.field');
-
/**
* Implements hook_menu().
*/