function module_exists

cis7 module.inc module_exists($module)
cle7 module.inc module_exists($module)
elmsmedia7 module.inc module_exists($module)
icor7 module.inc module_exists($module)
meedjum_blog7 module.inc module_exists($module)
mooc7 module.inc module_exists($module)

Determines 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.

564 calls to module_exists()
@print_mail_settings in sites/all/modules/local_contrib/print/print_mail/print_mail.admin.inc
Menu callback for the send by email module settings form.
accessibility_requirements in sites/all/modules/ulmus/accessibility/accessibility.install
Implements hook_requirements().
accessibility_wysiwyg_pre_render_text_format in sites/all/modules/ulmus/accessibility/modules/accessibility_wysiwyg/accessibility_wysiwyg.module
Alter callback to see if accessibility javascript should be loaded on the current page. @todo - This will turn on for every form whenever ckeditor is installed, should only turn on when the current page is included in the global profile.
adaptivetheme_form_alter in sites/all/themes/ulmus/adaptivetheme/at_core/inc/alter.inc
hook_form_FORM_alter()
adaptivetheme_form_user_login_block_alter in sites/all/themes/ulmus/adaptivetheme/at_core/inc/alter.inc
hook_form_FORM_ID_alter() Modify the User Login Block Form

... See full list

5 string references to 'module_exists'
features_get_normal in sites/all/modules/ulmus/features/features.export.inc
Get normal objects for a given module/component pair.
features_include in sites/all/modules/ulmus/features/features.module
Load includes for any modules that implement the features API and load includes for those provided by features.
features_install_modules in sites/all/modules/ulmus/features/features.module
Enables and installs an array of modules, ignoring those already enabled & installed. Consider this a helper or extension to drupal_install_modules().
token_drush_cache_clear in sites/all/modules/ulmus/token/token.drush.inc
Implements hook_drush_cache_clear().
_entity_metadata_core_modules in sites/all/modules/ulmus/entity/entity.info.inc

File

includes/module.inc, line 274
API for loading and interacting with Drupal modules.

Code

function module_exists($module) {
  $list = module_list();
  return isset($list[$module]);
}