function entityform_page_title in Entityform 7
Same name and namespace in other branches
- 7.2 entityform.module \entityform_page_title()
Menu title callback for showing individual entities
1 string reference to 'entityform_page_title'
- 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 645 - Module for the Entityform Entity - a starting point to create your own Entity and associated administration interface
Code
function entityform_page_title($entityform, $op = 'view') {
if (!empty($entityform)) {
$entityform_type = entityform_get_types($entityform->type);
switch ($op) {
case 'submit':
return $entityform_type->label;
default:
return t('Form Submission') . ': ' . $entityform_type->label;
}
}
}