module_exists
includes/module.inc, line 228
- 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.
▾ 30 functions call module_exists()
- block_admin_display_form in modules/block/block.admin.inc
- Generate main blocks administration form.
- block_help in modules/block/block.module
- Implementation of hook_help().
- blogapi_mt_validate_terms in modules/blogapi/blogapi.module
- Blogging API helper - find allowed taxonomy terms for a node type.
- chameleon_node in themes/chameleon/chameleon.theme
- contact_help in modules/contact/contact.module
- Implementation of hook_help().
- hook_search in developer/hooks/core.php
- Define a custom search routine.
- language_list in includes/bootstrap.inc
- Get a list of languages set up indexed by the specified key
- menu_get_active_help in includes/menu.inc
- Returns the help associated with the active menu item.
- module_disable in includes/module.inc
- Disable a given set of modules.
- node_admin_nodes in modules/node/node.admin.inc
- Form builder: Builds the node administration overview.
- node_filters in modules/node/node.admin.inc
- List node administration filters that can be applied.
- node_revision_revert_confirm_submit in modules/node/node.pages.inc
- node_search in modules/node/node.module
- Implementation of hook_search().
- path_admin_overview in modules/path/path.admin.inc
- Return a listing of all defined URL aliases. When filter key passed, perform a standard search on the given key, and return the list of matching URL aliases.
- phptemplate_preprocess_page in themes/garland/template.php
- Override or insert PHPTemplate variables into the templates.
- system_admin_by_module in modules/system/system.admin.inc
- Menu callback; prints a listing of admin tasks for each installed module.
- system_help in modules/system/system.module
- Implementation of hook_help().
- system_modules in modules/system/system.admin.inc
- Menu callback; provides module enable/disable interface.
- system_requirements in modules/system/system.install
- Test and report Drupal installation requirements.
- system_theme_settings in modules/system/system.admin.inc
- Form builder; display theme configuration for entire site and individual themes.
- system_update_6018 in modules/system/system.install
- Add HTML corrector to HTML formats or replace the old module if it was in use.
- template_preprocess_block_admin_display_form in modules/block/block.admin.inc
- Process variables for block-admin-display.tpl.php.
- template_preprocess_node in includes/theme.inc
- Process variables for node.tpl.php
- theme_aggregator_block_item in modules/aggregator/aggregator.module
- Format an individual feed item for display in the block.
- theme_get_settings in includes/theme.inc
- Retrieve an associative array containing the settings for a theme.
- theme_system_modules in modules/system/system.admin.inc
- Theme callback for the modules form.
- trigger_access_check in modules/trigger/trigger.module
- Access callback for menu system.
- update_results_page in ./update.php
- user_edit_form in modules/user/user.module
- _block_get_cache_id in modules/block/block.module
- Assemble the cache_id to use for a given block.
Code
<?php
function module_exists($module) {
$list = module_list();
return array_key_exists($module, $list);
}
?> 