function lightbox2_menu in Lightbox2 7
Same name and namespace in other branches
- 8 lightbox2.module \lightbox2_menu()
- 5.2 lightbox2.module \lightbox2_menu()
- 5 lightbox2.module \lightbox2_menu()
- 6 lightbox2.module \lightbox2_menu()
- 7.2 lightbox2.module \lightbox2_menu()
Implementation of hook_menu().
File
- ./
lightbox2.module, line 160 - Enables the use of lightbox2 which places images above your current page, not within. This frees you from the constraints of the layout, particularly column widths.
Code
function lightbox2_menu() {
$items = array();
$items['system/lightbox2/filter-xss'] = array(
'title' => 'Filter XSS',
'page callback' => 'lightbox2_filter_xss',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['admin/config/user-interface/lightbox2'] = array(
'title' => 'Lightbox2',
'description' => 'Allows the user to configure the lightbox2 settings',
'file' => 'lightbox2.admin.inc',
'page callback' => 'lightbox2_settings_page',
'access callback' => 'user_access',
'access arguments' => array(
'administer lightbox2',
),
);
$items['admin/config/user-interface/lightbox2/general'] = array(
'title' => 'General',
'description' => 'Allows the user to configure the lightbox2 settings',
'file' => 'lightbox2.admin.inc',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'lightbox2_general_settings_form',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer lightbox2',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 0,
);
$items['admin/config/user-interface/lightbox2/slideshow'] = array(
'title' => 'Slideshow',
'description' => 'Allows the user to configure the lightbox2 slideshow functionality',
'file' => 'lightbox2.admin.inc',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'lightbox2_slideshow_settings_form',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer lightbox2',
),
'type' => MENU_LOCAL_TASK,
'weight' => 1,
);
$items['admin/config/user-interface/lightbox2/html_content'] = array(
'title' => 'HTML Content',
'file' => 'lightbox2.admin.inc',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'lightbox2_iframe_settings_form',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer lightbox2',
),
'description' => 'Allows the user to configure the lightbox2 HTML content functionality.',
'type' => MENU_LOCAL_TASK,
'weight' => 2,
);
$items['admin/config/user-interface/lightbox2/automatic'] = array(
'title' => 'Automatic image handling',
'description' => 'Allows the user to configure the lightbox2 automatic image handling settings',
'file' => 'lightbox2.admin.inc',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'lightbox2_auto_image_handling_settings_form',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer lightbox2',
),
'type' => MENU_LOCAL_TASK,
'weight' => 3,
);
/**
if (module_exists('emfield') && module_exists('emvideo')) {
$items['video-cck/lightbox2/%node'] = array(
'page callback' => 'lightbox2_emvideo',
'page arguments' => array(2),
'access callback' => 'node_access',
'access arguments' => array('view', 2),
'type' => MENU_CALLBACK,
);
}
*/
/**
* There is not a version from acidfree to drupal 7
if (module_exists('acidfree') && module_exists('video')) {
$items['node/%node/lightframevideo'] = array(
'page callback' => 'lightbox2_acidfree_video',
'page arguments' => array(1),
'access callback' => 'lightbox2_acidfree_video_access',
'access arguments' => array(1),
'type' => MENU_CALLBACK,
);
}
*/
$items['user/login/lightbox2'] = array(
'title' => 'Login',
'page callback' => 'lightbox2_login',
'access callback' => 'user_is_anonymous',
'type' => MENU_CALLBACK,
);
$items['contact/lightbox2'] = array(
'title' => 'Contact',
'page callback' => 'lightbox2_contact',
'access arguments' => array(
'access site-wide contact form',
),
'type' => MENU_CALLBACK,
);
return $items;
}