function hosting_package_view in Hosting 7.4
Same name and namespace in other branches
- 5 package/hosting_package.module \hosting_package_view()
- 6.2 package/hosting_package.module \hosting_package_view()
- 7.3 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;
}