public function EntityformController::buildContent in Entityform 7.2
Same name and namespace in other branches
- 7 entityform.module \EntityformController::buildContent()
Overriding the buildContent function to add entity specific fields
Overrides EntityAPIController::buildContent
File
- ./
entityform.module, line 1308 - Module for the Entityform Entity - a starting point to create your own Entity and associated administration interface
Class
- EntityformController
- The Controller for Entityform entities
Code
public function buildContent($entity, $view_mode = 'full', $langcode = NULL, $content = array()) {
$content = parent::buildContent($entity, $view_mode, $langcode, $content);
$content['info']['user'] = array(
'#markup' => _entityform_get_submit_info($entity),
'#weight' => -100,
'#prefix' => '<div class="submitted">',
'#suffix' => '</div>',
);
$content['info']['#weight'] = -99;
return $content;
}