You are here

function agenda_menu in Agenda 6

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

Implementation of hook_menu().

File

./agenda.module, line 32

Code

function agenda_menu() {
  $items = array();
  $items['admin/settings/agenda'] = array(
    'title' => 'Agenda',
    'description' => 'Create new and manage existing agenda calendar blocks',
    'page callback' => 'agenda_admin',
    'page arguments' => array(
      'agenda_admin',
    ),
    'access arguments' => array(
      'configure agenda blocks',
    ),
    'file' => 'agenda.admin.php',
  );
  $items['admin/settings/agenda/%/configure'] = array(
    'title' => 'Configure agenda block',
    'type' => MENU_CALLBACK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'agenda_admin_configure',
      3,
    ),
    'access arguments' => array(
      'configure agenda blocks',
    ),
    'file' => 'agenda.admin.php',
  );
  $items['admin/settings/agenda/%/delete'] = array(
    'title' => 'Delete agenda block',
    'type' => MENU_CALLBACK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'agenda_admin_delete',
      3,
    ),
    'access arguments' => array(
      'configure agenda blocks',
    ),
    'file' => 'agenda.admin.php',
  );
  $items['admin/settings/agenda/%/debug'] = array(
    'title' => 'Test settings',
    'type' => MENU_CALLBACK,
    'page callback' => 'agenda_debug',
    'page arguments' => array(
      3,
    ),
    'access arguments' => array(
      'configure agenda blocks',
    ),
    'file' => 'agenda.admin.php',
  );
  $items['admin/settings/agenda/%/clear'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'agenda_clear',
    'page arguments' => array(
      3,
    ),
    'access arguments' => array(
      'configure agenda blocks',
    ),
    'file' => 'agenda.admin.php',
  );
  return $items;
}