You are here

function brilliant_gallery_menu in Brilliant Gallery 6.2

Same name and namespace in other branches
  1. 5.4 brilliant_gallery.module \brilliant_gallery_menu()
  2. 5.3 brilliant_gallery.module \brilliant_gallery_menu()
  3. 6.4 menu.inc \brilliant_gallery_menu()
  4. 6 brilliant_gallery.module \brilliant_gallery_menu()
  5. 6.3 brilliant_gallery.module \brilliant_gallery_menu()
  6. 7.2 brilliant_gallery_menu.inc \brilliant_gallery_menu()
  7. 7 brilliant_gallery_menu.inc \brilliant_gallery_menu()

File

./brilliant_gallery.module, line 264

Code

function brilliant_gallery_menu() {
  $items = array();
  $items['admin/settings/brilliant_gallery'] = array(
    'title' => 'Brilliant gallery',
    'description' => 'Brilliant gallery module settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'brilliant_gallery_admin',
    ),
    'access arguments' => array(
      'access administration pages',
    ),
    'type' => MENU_NORMAL_ITEM,
  );

  # A shortcut to the permissions settings for this module.
  $items['admin/settings/brilliant_gallery/permissions'] = array(
    #'path' => 'admin/user/access#module-brilliant_gallery',
    'title' => 'Configure permissions',
    'description' => 'Configure access permissions for the Brilliant gallery module',
    'page callback' => 'brilliant_gallery_perms',
    #'page arguments' => 'brilliant_gallery_perms',
    'access arguments' => array(
      'access administration pages',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/settings/brilliant_gallery/manage'] = array(
    'title' => 'Manage galleries',
    'description' => 'Manage galleries displayed using the Brilliant gallery module - e.g. visibility of individual images, etc.',
    'page callback' => 'render_brilliant_gallery_manage',
    #'page arguments' => 'brilliant_gallery_perms',
    'access arguments' => array(
      'access administration pages',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['brilliant_gallery'] = array(
    'title' => 'Brilliant gallery',
    'page callback' => 'brilliant_gallery_all',
    'access arguments' => array(
      'access brilliant_gallery',
    ),
    'type' => MENU_CALLBACK,
  );

  /*
    $items['brilliant_gallery/manage'] = array(
      'title' => 'Manage galleries',
      'page callback' => 'render_brilliant_gallery_manage',
      'access arguments' => array('access administration pages'),
      'type' => MENU_CALLBACK
    ); # The type MENU_CALLBACK tells Drupal to not display the link in the user's menu, just use this function when the URL is accessed. Use MENU_NORMAL_ITEM if you want the user to see the link in the side navigation block.
  */

  # 2 menu callback functions to implement the ajax load and save routines
  $items['bgchecklist/loadall'] = array(
    'page callback' => 'brilliant_gallery_checklist_loadall',
    'type' => MENU_CALLBACK,
    'access arguments' => array(
      'access brilliant_gallery',
    ),
  );
  $items['bgchecklist/save'] = array(
    'page callback' => 'brilliant_gallery_checklist_save',
    'type' => MENU_CALLBACK,
    'access arguments' => array(
      'access administration pages',
    ),
  );
  return $items;
}