public function PollimController::buildContent in Poll Improved 7
Overriding the buldContent function to add entity specific fields
Overrides EntityAPIController::buildContent
File
- ./
pollim.module, line 541 - Module for the Pollim Entity - a starting point to create your own Entity and associated administration interface
Class
- PollimController
- The Controller for Pollim entities
Code
public function buildContent($entity, $view_mode = 'full', $langcode = NULL, $content = array()) {
$content = parent::buildContent($entity, $view_mode, $langcode, $content);
//var_dump($content);exit();
/*
$content['pollim_sample_data'] = array(
'#markup' => theme('pollim_sample_data', array('pollim_sample_data' => check_plain($entity->data['sample_data']), 'pollim' => $entity)),
);
*/
return $content;
}