You are here

function _features_module_exists in Features 7.2

Helper function to determine if a module is enabled.

Parameters

string $module: This module name comes from the .info file and can have version info in it.

Return value

bool TRUE, if the module is enabled.

1 string reference to '_features_module_exists'
features_get_normal in ./features.export.inc
Get normal objects for a given module/component pair.

File

./features.export.inc, line 1150
Contains functions that export configuration into feature modules.

Code

function _features_module_exists($module) {
  $parsed_dependency = drupal_parse_dependency($module);
  $name = $parsed_dependency['name'];
  return module_exists($name);
}