function hosting_platform_hosting_summary in Hosting 7.4
Same name and namespace in other branches
- 5 platform/hosting_platform.module \hosting_platform_hosting_summary()
- 6.2 platform/hosting_platform.module \hosting_platform_hosting_summary()
- 7.3 platform/hosting_platform.module \hosting_platform_hosting_summary()
Implements hook_hosting_summary().
File
- platform/
hosting_platform.module, line 1054 - Platform node type definition.
Code
function hosting_platform_hosting_summary() {
$summary = array();
if (user_access('view locked platforms')) {
$platforms = _hosting_get_platforms();
$summary['platforms'] = theme('item_list', array(
'items' => array_map('_hosting_node_link', array_keys($platforms)),
'title' => t('Platforms'),
));
}
elseif (user_access('view platform')) {
$platforms = _hosting_get_enabled_platforms();
$summary['platforms'] = theme('item_list', array(
'items' => array_map('_hosting_node_link', array_keys($platforms)),
'title' => t('Platforms'),
));
}
return $summary;
}