You are here

function hosting_platform_hosting_summary in Hostmaster (Aegir) 6

Implementation of hook_hosting_summary().

File

modules/hosting/platform/hosting_platform.module, line 461
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_map('_hosting_node_link', array_keys($platforms)), t('Platforms'));
  }
  else {
    if (user_access('view platform')) {
      $platforms = _hosting_get_enabled_platforms();
      $summary['platforms'] = theme('item_list', array_map('_hosting_node_link', array_keys($platforms)), t('Platforms'));
    }
  }
  return $summary;
}