You are here

function zoomapi_menu in Zoom API 7

Same name and namespace in other branches
  1. 7.2 zoomapi.module \zoomapi_menu()

Implements hook_menu().

File

./zoomapi.module, line 35
Main file for the Zoom API module.

Code

function zoomapi_menu() {

  // Webhook.
  $items['zoomapi/webhook'] = [
    'title' => 'Zoom API Webhook',
    'description' => 'See https://zoom.github.io/api/#webhooks',
    'page callback' => 'zoomapi_webhooks_callback',
    'access callback' => 'zoomapi_webhooks_access',
    'file' => 'zoomapi.pages.inc',
    'type' => MENU_CALLBACK,
  ];

  // Admin settings.
  $items['admin/config/services/zoomapi'] = [
    'title' => 'Zoom API Settings',
    'description' => 'Configuration for Zoom API',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'zoomapi_settings_form',
    ],
    'access arguments' => [
      'administer zoomapi',
    ],
    'file' => 'zoomapi.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  ];
  return $items;
}