You are here

function talk_menu in Talk 7

Same name and namespace in other branches
  1. 5 talk.module \talk_menu()
  2. 6 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/config/content/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;
}