You are here

function drupalchat_menu in DrupalChat 6

Same name and namespace in other branches
  1. 6.2 drupalchat.module \drupalchat_menu()
  2. 7.2 drupalchat.module \drupalchat_menu()
  3. 7 drupalchat.module \drupalchat_menu()

Implementaiton of hook_menu()

File

./drupalchat.module, line 110
Module code for DrupalChat.

Code

function drupalchat_menu() {
  $items['admin/settings/drupalchat'] = array(
    'title' => 'DrupalChat',
    'description' => 'Administer DrupalChat',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'drupalchat_settings_form',
    ),
    'access arguments' => array(
      'administer drupalchat',
    ),
    'file' => 'drupalchat.admin.inc',
  );
  $items['drupalchat/poll'] = array(
    'page callback' => 'drupalchat_poll',
    'access arguments' => array(
      'access drupalchat',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['drupalchat/send'] = array(
    'page callback' => 'drupalchat_send',
    'access arguments' => array(
      'access drupalchat',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['drupalchat/status'] = array(
    'page callback' => 'drupalchat_status',
    'access arguments' => array(
      'access drupalchat',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}