function theme_talk_title in Talk 7
Same name and namespace in other branches
- 6 talk.module \theme_talk_title()
Theme function to create a talk title.
1 theme call to theme_talk_title()
- talk_title in ./
talk.module - Provide an appropriate title for the context.
File
- ./
talk.module, line 145 - Comments are displayed in a separate 'talk' tab, for node types you wish
Code
function theme_talk_title($variables) {
$node = $variables['node'];
$type = $variables['type'];
$title = variable_get('talk_' . $type, t('Talk'));
if (module_exists('token') && isset($node->nid)) {
global $user;
$title = token_replace($title, array(
'global' => NULL,
'user' => $user,
'node' => $node,
));
}
return html_entity_decode(check_plain($title), ENT_QUOTES);
}