You are here

function hosting_platform_hosting_summary in Hosting 6.2

Same name and namespace in other branches
  1. 5 platform/hosting_platform.module \hosting_platform_hosting_summary()
  2. 7.4 platform/hosting_platform.module \hosting_platform_hosting_summary()
  3. 7.3 platform/hosting_platform.module \hosting_platform_hosting_summary()

Implementation of hook_hosting_summary().

File

platform/hosting_platform.module, line 611
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;
}