You are here

function bg_image_menu in Background Images 6

Same name and namespace in other branches
  1. 7 bg_image.module \bg_image_menu()

Implements hook_menu().

File

./bg_image.module, line 15
Allows for customizable background images per page

Code

function bg_image_menu() {
  $items['admin/settings/background-image'] = array(
    'title' => 'Background Image',
    'description' => t('Settings for how to apply the background image to the page'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'bg_image_settings_form',
    ),
    'access arguments' => array(
      'administer background image',
    ),
  );
  $items['bg-image/js'] = array(
    'page callback' => 'bg_image_node_type_ajax_callback',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}