You are here

function rocket_chat_menu in Rocket.Chat 7

Same name and namespace in other branches
  1. 7.2 rocket_chat.module \rocket_chat_menu()

Implements hook_menu().

See also

\hook_menu()

File

./rocket_chat.module, line 58
Rocket.Chat Livechat Module.

Code

function rocket_chat_menu() {
  $menu = array(
    'title' => 'Rocket.Chat Settings',
    'description' => 'Do your Rocket.Chat configuration here',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'rocket_chat_admin_page',
    ),
    'access arguments' => array(
      'rocket_chat admin',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/config/services/rocket_chat'] = $menu;
  return $items;
}