You are here

function brilliant_gallery_menu in Brilliant Gallery 5.3

Same name and namespace in other branches
  1. 5.4 brilliant_gallery.module \brilliant_gallery_menu()
  2. 6.4 menu.inc \brilliant_gallery_menu()
  3. 6 brilliant_gallery.module \brilliant_gallery_menu()
  4. 6.2 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 245

Code

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

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

  /*
    $items[] = array(
      'path' => 'brilliant_gallery/manage',
      'title' => t('Manage galleries'),
      'callback' => 'render_brilliant_gallery_manage',
      'access' => user_access('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[] = array(
    'path' => 'bgchecklist/loadall',
    'callback' => 'brilliant_gallery_checklist_loadall',
    'type' => MENU_CALLBACK,
    'access' => user_access('access brilliant_gallery'),
  );
  $items[] = array(
    'path' => 'bgchecklist/save',
    'callback' => 'brilliant_gallery_checklist_save',
    'type' => MENU_CALLBACK,
    'access' => user_access('access administration pages'),
  );
  return $items;
}