You are here

function drd_agent_menu in DRD Agent 6.3

Same name and namespace in other branches
  1. 7.3 drd_agent.module \drd_agent_menu()

Implements hook_menu().

Return value

array An array of all defined menu items by this module.

File

./drd_agent.module, line 18

Code

function drd_agent_menu() {
  $items['drd-agent'] = array(
    'title' => 'DRD Agent Callback',
    'page callback' => 'drd_agent',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['drd-agent-crypt'] = array(
    'title' => 'DRD Agent Callback',
    'page callback' => 'drd_agent_crypt',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['drd-agent-authorize-secret'] = array(
    'title' => 'Authorize Dashboard',
    'page callback' => 'drd_agent_authorize_secret',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['drd-agent-authorize'] = array(
    'title' => 'Authorize Dashboard',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'drd_agent_authorize',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'drd_agent.admin.inc',
    'type' => MENU_CALLBACK,
  );
  $items['admin/settings/drd'] = array(
    'title' => 'DRD',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'drd_agent_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'drd_agent.admin.inc',
  );
  return $items;
}