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