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.

545 calls to module_exists()
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
adaptivetheme_preprocess_breadcrumb in sites/all/themes/ulmus/adaptivetheme/at_core/inc/preprocess.inc
Preprocess variables for breadcrumbs

... 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]);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.