function talk_menu in Talk 6
Same name and namespace in other branches
- 5 talk.module \talk_menu()
- 7 talk.module \talk_menu()
Implementation of hook_menu().
File
- ./
talk.module, line 22 - Comments are displayed in a separate 'talk' tab, for node types you wish
Code
function talk_menu() {
$items = array();
$items['node/%node/talk'] = array(
'title callback' => 'talk_title',
'title arguments' => array(
1,
),
'page callback' => 'talk_handle',
'page arguments' => array(
1,
),
'access callback' => '_talk_access',
'access arguments' => array(
1,
),
'type' => MENU_LOCAL_TASK,
'weight' => 1,
);
$items['admin/settings/talk'] = array(
'title' => 'Talk page',
'description' => 'Configure settings for the talk page.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'talk_admin_form',
),
'access arguments' => array(
'administer site configuration',
),
);
return $items;
}