function module_load_include

cis7 module_load_include($type, $module, $name = NULL)
cle7 module_load_include($type, $module, $name = NULL)
elmsmedia7 module_load_include($type, $module, $name = NULL)
icor7 module_load_include($type, $module, $name = NULL)
meedjum_blog7 module_load_include($type, $module, $name = NULL)
mooc7 module_load_include($type, $module, $name = NULL)

Loads a module include file.


  // Load from the node module.
  module_load_include('inc', 'node', 'node.admin');
  // Load from the node module.
  module_load_include('inc', 'node', 'content_types');

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.


$type: The include file's type (file extension).

$module: The module to which the include file belongs.

$name: (optional) The base file name (without the $type extension). If omitted, $module is used; i.e., resulting in "$module.$type" by default.

Return value

The name of the included file, if successful; FALSE otherwise.

366 calls to module_load_include()
accessibility_content_field_attach_view_alter in sites/all/modules/ulmus/accessibility/modules/accessibility_content/accessibility_content.module
Implements hook_field_attach_view_alter().
accessibility_content_field_widget_form_alter in sites/all/modules/ulmus/accessibility/modules/accessibility_content/accessibility_content.module
Implements field_widget_form_alter().
accessibility_test_features_export in sites/all/modules/ulmus/accessibility/
Implements hook[component]_features_export().
accessibility_test_features_export_render in sites/all/modules/ulmus/accessibility/
Implements hook[component]_features_export_render().
accessibility_test_features_rebuild in sites/all/modules/ulmus/accessibility/
Implements hook[component]_features_rebuild().

... See full list

1 string reference to 'module_load_include'
httprl.examples.php in sites/all/modules/ulmus/httprl/examples/httprl.examples.php
HTTP Parallel Request Library code examples.


includes/, line 322
API for loading and interacting with Drupal modules.


function module_load_include($type, $module, $name = NULL) {
  if (!isset($name)) {
    $name = $module;

  if (function_exists('drupal_get_path')) {
    $file = DRUPAL_ROOT . '/' . drupal_get_path('module', $module) . "/$name.$type";
    if (is_file($file)) {
      require_once $file;
      return $file;
  return FALSE;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.