function module_exist in Drupal 4
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()
- block_admin_display in modules/
block.module - Generate main block administration form.
- chameleon_node in themes/
chameleon/ chameleon.theme - contact_help in modules/
contact.module - Implementation of hook_help().
- forum_page in modules/
forum.module - Menu callback; prints a forum listing.
- menu_primary_links in includes/
menu.inc - Returns an array containing the primary links. Can optionally descend from the root of the Primary links menu towards the current node for a specified number of levels and return that submenu. Used to generate a primary/secondary menu from different…
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);
}