function node_registration_page_title in Node registration 7
Page title callback for a single Node registration.
1 string reference to 'node_registration_page_title'
- node_registration_menu in ./
node_registration.module - Implements hook_menu().
File
- ./
node_registration.module, line 725
Code
function node_registration_page_title($registration) {
// Use the node title in the registration page title.
$node = $registration->node ?: node_load($registration->nid);
if ($node && !empty($node->title)) {
// Complete $title will be check_plain()ed by set_title or some shit later. No way
// to change that from here?
$title = t('Registration !num for !title', array(
'!title' => $node->title,
'!num' => $registration->registration_id,
));
return $title;
}
}