function colorbox_menu in Colorbox 7
Same name and namespace in other branches
- 6 colorbox.module \colorbox_menu()
- 7.2 colorbox.module \colorbox_menu()
Implements hook_menu().
File
- ./
colorbox.module, line 77 - A light-weight, customizable lightbox plugin for jQuery 1.3
Code
function colorbox_menu() {
$items = array();
$items['admin/config/media/colorbox'] = array(
'title' => 'Colorbox',
'description' => 'Adjust Colorbox settings.',
'file' => 'colorbox.admin.inc',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'colorbox_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
);
$items['user/login/colorbox'] = array(
'title' => 'Login',
'page callback' => 'colorbox_login',
'access callback' => 'user_is_anonymous',
'type' => MENU_CALLBACK,
'file' => 'colorbox.pages.inc',
);
$items['colorbox/form'] = array(
'title' => 'Form',
'page callback' => 'colorbox_form_page',
'page arguments' => array(
2,
),
'access callback' => '_colorbox_form_page_access',
'access arguments' => array(
2,
),
'type' => MENU_CALLBACK,
'file' => 'colorbox.pages.inc',
);
return $items;
}