Commit bd48d8be authored by webchick's avatar webchick

#599122 by scor: Convert all require(DRUPAL_ROOT . 'file') to module_load_include().

parent 846ad794
......@@ -10,12 +10,12 @@
* mechanism for auto-loading core APIs, so we have to load them on
* every page request.
*/
require(DRUPAL_ROOT . '/modules/field/field.crud.inc');
require(DRUPAL_ROOT . '/modules/field/field.default.inc');
require(DRUPAL_ROOT . '/modules/field/field.info.inc');
require(DRUPAL_ROOT . '/modules/field/field.multilingual.inc');
require(DRUPAL_ROOT . '/modules/field/field.attach.inc');
require(DRUPAL_ROOT . '/modules/field/field.form.inc');
module_load_include('inc', 'field', 'field.crud');
module_load_include('inc', 'field', 'field.default');
module_load_include('inc', 'field', 'field.info');
module_load_include('inc', 'field', 'field.multilingual');
module_load_include('inc', 'field', 'field.attach');
module_load_include('inc', 'field', 'field.form');
/**
* @defgroup field Field API
......
......@@ -7,7 +7,7 @@
*/
// Load all Field module hooks for File.
require(DRUPAL_ROOT . '/modules/file/file.field.inc');
module_load_include('inc', 'file', 'file.field');
/**
* Implement hook_menu().
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment