Determine whether a given module exists.
Parameters
$module: The name of the module (without the .module extension).
Return value
TRUE if the module is both installed and enabled.
22 calls to module_exist()
File
- includes/
module.inc, line 90 - API for loading and interacting with Drupal modules.
Code
function module_exist($module) {
$list = module_list();
return array_key_exists($module, $list);
}
Login or register to post comments