function entityform_page_view in Entityform 7.2
Same name and namespace in other branches
- 7 entityform.module \entityform_page_view()
Sets up content to show an individual entityform @todo - get rid of drupal_set_title();
1 string reference to 'entityform_page_view'
- EntityformUIController::hook_menu in ./
entityform.admin.inc - Overrides hook_menu() defaults. Main reason for doing this is that parent class hook_menu() is optimized for entity type administration.
File
- ./
entityform.module, line 668 - Module for the Entityform Entity - a starting point to create your own Entity and associated administration interface
Code
function entityform_page_view($entityform, $view_mode = 'full') {
$controller = entity_get_controller('entityform');
$content = $controller
->view(array(
$entityform->entityform_id => $entityform,
), $view_mode);
//drupal_set_title($entityform->name);
return $content;
}