Same name and namespace in other branches
  1. 7.x-2.x colorbox.module \colorbox_menu() 1 comment

Implements hook_menu().

File

./colorbox.module, line 77

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;
}