module_load_all

Definition

module_load_all()
includes/module.inc, line 78

Description

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

Return value

TRUE if all modules were loaded successfully.

Code

<?php
function module_load_all() {
  $list = module_list(TRUE, FALSE);
  $status = TRUE;

  foreach ($list as $module) {
    $status = (drupal_load('module', $module) && $status);
  }

  return $status;
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.