function pollim_page_view in Poll Improved 7
Sets up content to show an individual pollim @todo - get rid of drupal_set_title();
1 string reference to 'pollim_page_view'
- PollimUIController::hook_menu in ./
pollim.admin.inc - Overrides hook_menu() defaults. Main reason for doing this is that parent class hook_menu() is optimized for entity type administration.
File
- ./
pollim.module, line 330 - Module for the Pollim Entity - a starting point to create your own Entity and associated administration interface
Code
function pollim_page_view($pollim, $view_mode = 'full') {
$controller = entity_get_controller('pollim');
$content = $controller
->view(array(
$pollim->pollim_id => $pollim,
));
drupal_set_title($pollim->name);
return $content;
}