You are here

function hosting_package_view in Hosting 5

Same name and namespace in other branches
  1. 6.2 package/hosting_package.module \hosting_package_view()
  2. 7.4 package/hosting_package.module \hosting_package_view()
  3. 7.3 package/hosting_package.module \hosting_package_view()

Implementation of hook_view().

File

package/hosting_package.module, line 225

Code

function hosting_package_view($node, $teaser = FALSE, $page = FALSE) {
  hosting_set_breadcrumb($node);
  $node->content['package_type'] = array(
    '#type' => 'item',
    '#title' => t('Package Type'),
    '#value' => filter_xss($node->package_type),
  );
  $node->content['short_name'] = array(
    '#type' => 'item',
    '#title' => t('Project name'),
    '#value' => filter_xss($node->short_name),
  );
  if ($node->package_type == 'profile') {
    $node->content['sites'] = array(
      '#type' => 'item',
      '#title' => t("Sites"),
      '#value' => hosting_site_list("profile", $node->nid),
      '#weight' => 10,
    );
  }
  return $node;
}