You are here

function hosting_package_view in Hosting 7.3

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

Implements hook_view().

File

package/hosting_package.module, line 343
Defines package node types

Code

function hosting_package_view($node, $view_mode, $langcode = NULL) {
  hosting_set_breadcrumb($node);
  $node->content['info']['#prefix'] = '<div id="hosting-package-info">';
  $node->content['info']['package_type'] = array(
    '#type' => 'item',
    '#title' => t('Package Type'),
    '#markup' => filter_xss($node->package_type),
  );
  $node->content['info']['short_name'] = array(
    '#type' => 'item',
    '#title' => t('Project Name'),
    '#markup' => filter_xss($node->short_name),
  );
  if (!empty($node->old_short_name)) {
    $node->content['info']['old_short_name'] = array(
      '#type' => 'item',
      '#title' => t('Previous Project Name'),
      '#markup' => filter_xss($node->old_short_name),
    );
  }
  $node->content['info']['#suffix'] = '</div>';
  return $node;
}