function enterprise_base_apps_structures in Enterprise Base 7
2 calls to enterprise_base_apps_structures()
- enterprise_base_apps_structures_list in ./
enterprise_base.admin.inc - Menu callback; Listing of all current widget sets.
- enterprise_base_app_structures_load in ./
enterprise_base.module
File
- ./
enterprise_base.module, line 441
Code
function enterprise_base_apps_structures() {
$apps_structures =& drupal_static(__FUNCTION__);
// Grab from cache or build the array.
if (!isset($sets)) {
if (FALSE && ($cache = cache_get('enterprise_base_apps_structures', 'cache'))) {
$apps_structures = $cache->data;
}
else {
$apps_structures = array();
// Select the module-defined sets.
foreach (module_implements('enterprise_base_apps_structures') as $module) {
$app_structures = module_invoke($module, 'enterprise_base_apps_structures');
foreach ($app_structures as $app_name => $app_structure) {
$app_structure['name'] = $app_name;
$app_structure['module'] = $module;
$apps_structures[$app_name] = $app_structure;
}
}
drupal_alter('enterprise_base_apps_structures', $apps_structures);
cache_set('enterprise_base_apps_structures', $apps_structures);
}
}
return $apps_structures;
}