function views_get_module_apis in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 6.2 views.module \views_get_module_apis()
- 7.3 views.module \views_get_module_apis()
Get a list of modules that support the current views API.
2 calls to views_get_module_apis()
- views_module_include in ./
views.module - Load views files on behalf of modules.
- views_theme in ./
views.module - Implementation of hook_theme(). Register views theming functions.
File
- ./
views.module, line 756 - Primarily Drupal hooks and global API functions to manipulate views.
Code
function views_get_module_apis($reset = FALSE) {
static $cache = NULL;
if (!isset($cache) || $reset) {
$cache = array();
foreach (module_implements('views_api') as $module) {
$function = $module . '_views_api';
$info = $function();
if (version_compare($info['api'], views_api_minimum_version(), '>=') && version_compare($info['api'], views_api_version(), '<=')) {
if (!isset($info['path'])) {
$info['path'] = drupal_get_path('module', $module);
}
$cache[$module] = $info;
}
}
}
return $cache;
}