module_exists
- Versions
- 5 – 7
module_exists($module)
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.
Code
includes/module.inc, line 141
<?php
function module_exists($module) {
$list = module_list();
return isset($list[$module]);
}
?>Login or register to post comments 