You are here

public function EntityformController::buildContent in Entityform 7

Same name and namespace in other branches
  1. 7.2 entityform.module \EntityformController::buildContent()

Overriding the buldContent function to add entity specific fields

Overrides EntityAPIController::buildContent

File

./entityform.module, line 1226
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,
  );
  $content['info']['#weight'] = -99;
  return $content;
}