You are here

function _ed_classified_module_exists in Classified Ads 6.2

Same name and namespace in other branches
  1. 5.2 ed_classified_utils.inc \_ed_classified_module_exists()
  2. 5 ed_classified_utils.inc \_ed_classified_module_exists()
  3. 7.2 ed_classified_utils.inc \_ed_classified_module_exists()

Determine, in a version-friendly way, if a module exists.

Some folks have decided to change module_exist() to module_exists() for 4.8/5.0. http://drupal.org/node/79601

2 calls to _ed_classified_module_exists()
ed_classified_get_popular_ads_list in ./ed_classified_utils.inc
Get a list of popular ads for block use
ed_classified_link in ./ed_classified.module
Implements hook_link().

File

./ed_classified_utils.inc, line 443
Simple text-based classified ads module.

Code

function _ed_classified_module_exists($module) {
  $module_exists = FALSE;
  if (function_exists('module_exist')) {
    $module_exists = module_exist($module);

    // 4.7
  }
  if (function_exists('module_exists')) {
    $module_exists = module_exists($module);

    // 4.8/5.0?
  }
  return $module_exists;
}