You are here

function skinr_get_module_apis in Skinr 6

Same name and namespace in other branches
  1. 6.2 skinr.module \skinr_get_module_apis()

Get a list of modules that support skinr.

1 call to skinr_get_module_apis()
skinr_module_include in ./skinr.module
Load views files on behalf of modules.

File

./skinr.module, line 463

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;
}