function agenda_menu in Agenda 6.2
Same name and namespace in other branches
- 6 agenda.module \agenda_menu()
- 7.2 agenda.module \agenda_menu()
- 7 agenda.module \agenda_menu()
Implementation of hook_menu().
File
- ./
agenda.module, line 26
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/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/settings/agenda/googleapi'] = array(
'title' => 'Settings',
'description' => 'Set Google API Key',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'agenda_admin_googleapi',
),
'access arguments' => array(
'configure agenda blocks',
),
'type' => MENU_LOCAL_TASK,
'file' => 'agenda.admin.php',
);
$items['admin/settings/agenda/0/configure'] = array(
'title' => 'Add new block',
'type' => MENU_LOCAL_TASK,
'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/%/configure'] = array(
'title' => 'Configure agenda block settings',
'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',
'weight' => -4,
);
$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',
'weight' => -3,
);
$items['admin/settings/agenda/%/debug'] = array(
'title' => 'Debug agenda block',
'type' => MENU_CALLBACK,
'page callback' => 'agenda_debug',
'page arguments' => array(
3,
),
'access arguments' => array(
'configure agenda blocks',
),
'file' => 'agenda.admin.php',
'weight' => -2,
);
$items['admin/settings/agenda/%/clear'] = array(
'title' => 'Clear agenda block cache',
'type' => MENU_CALLBACK,
'page callback' => 'agenda_clear',
'page arguments' => array(
3,
),
'access arguments' => array(
'configure agenda blocks',
),
'file' => 'agenda.admin.php',
'weight' => -1,
);
return $items;
}