From dba61c45e60c88f60b3d315fb083369a7ebaf2b2 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 28 Jan 2010 13:56:25 +0000 Subject: #599122 follow-up by scor and catch: Do not use module_load_include() in global context. --- modules/file/file.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/file') 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(). */ -- cgit v1.2.3