You are here

function fastly_menu in Fastly 7.2

Same name and namespace in other branches
  1. 7 fastly.module \fastly_menu()

Implements hook_menu().

File

./fastly.module, line 75
Fastly module.

Code

function fastly_menu() {
  $items = array();
  $items['admin/config/services/fastly'] = array(
    'title' => 'Fastly configuration',
    'description' => 'Fastly configuration',
    'page callback' => 'fastly_select_page',
    'access arguments' => array(
      'administer fastly',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/config/services/fastly/new'] = array(
    'title' => 'Create a service',
    'description' => 'Create a service',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fastly_new_service_form',
    ),
    'access arguments' => array(
      'administer fastly',
    ),
    'file' => 'fastly.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/config/services/fastly/config'] = array(
    'title' => 'Configuration',
    'description' => 'Fastly configuration',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fastly_setup_form',
    ),
    'access arguments' => array(
      'administer fastly',
    ),
    'file' => 'fastly.admin.inc',
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/config/services/fastly/webhook'] = array(
    'title' => 'Webhook',
    'description' => 'Webhook configuration',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fastly_webhook_form',
    ),
    'access arguments' => array(
      'administer fastly',
    ),
    'file' => 'fastly.admin.inc',
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/config/services/fastly/register'] = array(
    'title' => 'Registration',
    'description' => 'Fastly registration',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fastly_register_form',
    ),
    'access arguments' => array(
      'administer fastly',
    ),
    'file' => 'fastly.admin.inc',
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/config/services/fastly/purge'] = array(
    'title' => 'Purge cache',
    'description' => 'Fastly purge cache',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fastly_purge_form',
    ),
    'access arguments' => array(
      'administer fastly',
    ),
    'file' => 'fastly.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/config/services/fastly/vcl'] = array(
    'title' => 'Vcl upload',
    'description' => 'VCL upload',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fastly_vcl_upload_form',
    ),
    'access arguments' => array(
      'administer fastly',
    ),
    'file' => 'fastly.admin.inc',
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}