You are here

function bg_image_ui_menu in Background Images 7

Implements hook_menu().

File

bg_image_ui/bg_image_ui.module, line 11

Code

function bg_image_ui_menu() {
  $items['admin/content/background-images'] = array(
    'title' => 'Background Images',
    'description' => t("Manage your site's background images"),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'bg_image_ui_paths_form',
    ),
    'access arguments' => array(
      'manage background images',
    ),
    'file' => NULL,
    'type' => MENU_LOCAL_TASK | MENU_NORMAL_ITEM,
  );
  $items['admin/content/background-images/path/remove/%'] = array(
    'title' => 'Remove Background Image Path',
    'description' => t("Remove a path from the background image paths list"),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'bg_image_ui_remove_path_form',
      5,
    ),
    'access arguments' => array(
      'manage background images',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}