You are here

function ng_lightbox_menu in NG Lightbox 7

Implements hook_menu().

File

./ng_lightbox.module, line 126
The NG Lightbox module.

Code

function ng_lightbox_menu() {
  $items['ng-lightbox'] = array(
    'title' => '',
    'page callback' => 'ng_lightbox_path_callback',
    'delivery callback' => 'ajax_deliver',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/media/ng-lightbox'] = array(
    'title' => 'NG Lightbox',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ng_lightbox_settings',
    ),
    'access arguments' => array(
      'administer ng lightbox',
    ),
    'description' => 'Configure the settings for NG Lightbox.',
    'file' => 'ng_lightbox.admin.inc',
  );
  return $items;
}