| Versionen | |
|---|---|
| drupal6 – drupal7 | module_exists($module) |
Determine whether a given module exists.
$module The name of the module (without the .module extension).
TRUE if the module is both installed and enabled.
includes/
<?php
function module_exists($module) {
$list = module_list();
return array_key_exists($module, $list);
}
?>
Kommentare
Kommentar hinzufügen