function drush_module_exists

8.0.x environment_7.inc drush_module_exists($module)
8.0.x environment_6.inc drush_module_exists($module)
8.0.x environment.inc drush_module_exists($module)
7.x environment_7.inc drush_module_exists($module)
7.x environment_6.inc drush_module_exists($module)
7.x environment.inc drush_module_exists($module)
master environment_7.inc drush_module_exists($module)
master environment.inc drush_module_exists($module)

Checks that a given module exists and is enabled.

See also

module_exists().

6 calls to drush_module_exists()
DrupalBoot::drush_enforce_requirement_drupal_dependencies in lib/Drush/Boot/DrupalBoot.php
Check that a command has its declared dependencies available or have no dependencies.
drush_get_projects in commands/pm/pm.drush.inc
Obtain an array of installed projects off the extensions available.
drush_hook_pre_pm_enable in ./drush.api.php
Automatically download project dependencies at pm-enable time.
drush_load_engine in includes/engines.inc
Loads and validate an engine of the given type.
drush_role_perm in commands/core/role.drush.inc
Implement permission add / remove operations.

... See full list

File

commands/core/drupal/environment_6.inc, line 171
Specific functions for a drupal 6 environment. drush_include_engine() magically includes either this file or environment_X.inc depending on which version of drupal drush is called from.

Code

function drush_module_exists($module) {
  return module_exists($module);
}