You are here

public function HostingDeployNode::nodeView in Aegir Deploy 7.3

Alter the display of a node.

Overrides HostingNode::nodeView

File

includes/HostingDeployNode.inc, line 11
The HostingDeployNode class.

Class

HostingDeployNode
@file The HostingDeployNode class.

Code

public function nodeView() {
  parent::nodeView();
  $strategies = HostingDeployForm::getStrategyLabels();
  if ($strategy = $this
    ->getFieldValue('field_deployment_strategy')) {
    $this->node->content['info']['field_deployment_strategy']['#markup'] = $strategies[$strategy];
  }
}