function skinr_get_module_apis in Skinr 6.2
Same name and namespace in other branches
- 6 skinr.module \skinr_get_module_apis()
Get a list of modules that support skinr.
2 calls to skinr_get_module_apis()
- skinr_module_include in ./
skinr.module - Load skinr files on behalf of modules.
- _skinr_skins_data in ./
skinr.module - Helper function to scan and collect skin .info data.
File
- ./
skinr.module, line 398
Code
function skinr_get_module_apis() {
static $cache = NULL;
if (is_null($cache)) {
$cache = array();
foreach (module_implements('skinr_api') as $module) {
$function = $module . '_skinr_api';
$info = $function();
if (isset($info['api']) && $info['api'] == 1.0) {
if (!isset($info['path'])) {
$info['path'] = drupal_get_path('module', $module);
}
$cache[$module] = $info;
}
}
}
return $cache;
}