function module_load_all

cis7 module.inc module_load_all($bootstrap = FALSE)
cle7 module.inc module_load_all($bootstrap = FALSE)
elmsmedia7 module.inc module_load_all($bootstrap = FALSE)
icor7 module.inc module_load_all($bootstrap = FALSE)
meedjum_blog7 module.inc module_load_all($bootstrap = FALSE)
mooc7 module.inc module_load_all($bootstrap = FALSE)

Loads all the modules that have been enabled in the system table.

Parameters

$bootstrap: Whether to load only the reduced set of modules loaded in "bootstrap mode" for cached pages. See bootstrap.inc.

Return value

If $bootstrap is NULL, return a boolean indicating whether all modules have been loaded.

7 calls to module_load_all()
devel_themer_theme_twin in sites/all/modules/ulmus/devel_themer/devel_themer.module
Nearly clones the Drupal API theme() function.
theme in includes/theme.inc
Generates themed output.
ThemeRegistry::__construct in includes/theme.inc
Constructs a DrupalCacheArray object.
_drupal_bootstrap_full in includes/common.inc
_drupal_bootstrap_variables in includes/bootstrap.inc
Loads system variables and all enabled bootstrap modules.

... See full list

File

includes/module.inc, line 19
API for loading and interacting with Drupal modules.

Code

function module_load_all($bootstrap = FALSE) {
  static $has_run = FALSE;

  if (isset($bootstrap)) {
    foreach (module_list(TRUE, $bootstrap) as $module) {
      drupal_load('module', $module);
    }
    // $has_run will be TRUE if $bootstrap is FALSE.
    $has_run = !$bootstrap;
  }
  return $has_run;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.