function _ed_classified_module_exists in Classified Ads 5
Same name and namespace in other branches
- 5.2 ed_classified_utils.inc \_ed_classified_module_exists()
- 6.2 ed_classified_utils.inc \_ed_classified_module_exists()
- 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. see: 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 - Implementation of hook_link().
File
- ./
ed_classified_utils.inc, line 375 - Simple text-based classified ads module. Michael Curry, Exodus Development, Inc. exodusdev@gmail.com for more information, please visit http://exodusdev.com/drupal/modules/classified.module Copyright (c) 2006, 2007 Exodus Development, Inc. All Rights…
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;
}