You are here

function talk_title in Talk 7

Same name and namespace in other branches
  1. 5 talk.module \talk_title()
  2. 6 talk.module \talk_title()

Provide an appropriate title for the context.

Parameters

object $node: Optional node object.

string $type: Optional string for context: tab, page, link.

Return value

string

4 calls to talk_title()
talk_admin_form in ./talk.module
Menu call back for admin form.
talk_handle in ./talk.module
Menu callback for talk page.
talk_node_view in ./talk.module
Implements hook_node_view().
template_preprocess_talkpage in ./talk.module
Template preprocess function.
3 string references to 'talk_title'
talk_menu in ./talk.module
Implementation of hook_menu().
talk_uninstall in ./talk.install
Implementation of hook_uninstall().
talk_update_1 in ./talk.install
Provide 3 different settings instead of the one. Default to the one.

File

./talk.module, line 138
Comments are displayed in a separate 'talk' tab, for node types you wish

Code

function talk_title($node = NULL, $type = 'tab') {
  return theme('talk_title', array(
    'node' => $node,
    'type' => $type,
  ));
}