You are here

function google_image_sitemap_menu in Google Image Sitemap 7

Same name and namespace in other branches
  1. 6 google_image_sitemap.module \google_image_sitemap_menu()

Implements hook_menu().

Provides a page for configuring sitemap settings.

File

./google_image_sitemap.module, line 25
A module gives to Google information about images on your site.

Code

function google_image_sitemap_menu() {
  $items[GOOGLE_IMAGE_SITEMAP_ADMIN_PATH] = array(
    'title' => 'Google Image Sitemap',
    'description' => 'Create and configure google image sitemap.',
    'page callback' => '_google_image_sitemap_list',
    'access arguments' => array(
      'administer google image sitemap',
    ),
  );
  $items[GOOGLE_IMAGE_SITEMAP_ADMIN_PATH . '/list'] = array(
    'title' => 'List',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -5,
  );
  $items[GOOGLE_IMAGE_SITEMAP_ADMIN_PATH . '/add'] = array(
    'title' => 'Add new Google Image sitemap',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      '_google_image_sitemap_create_form',
    ),
    'access arguments' => array(
      'administer google image sitemap',
    ),
    'type' => MENU_LOCAL_ACTION,
  );
  $items[GOOGLE_IMAGE_SITEMAP_ADMIN_PATH . '/edit/%'] = array(
    'title' => 'Edit google image sitemap',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      '_google_image_sitemap_create_form',
      5,
    ),
    'access arguments' => array(
      'administer google image sitemap',
    ),
    'modal' => TRUE,
  );
  $items[GOOGLE_IMAGE_SITEMAP_ADMIN_PATH . '/delete/%'] = array(
    'title' => 'Delete google image sitemap',
    'page callback' => '_google_image_sitemap_delete_form',
    'page arguments' => array(
      5,
    ),
    'access arguments' => array(
      'administer google image sitemap',
    ),
  );
  $items[GOOGLE_IMAGE_SITEMAP_ADMIN_PATH . '/build/%'] = array(
    'title' => 'Build google image sitemap',
    'description' => 'Build google image sitemap.',
    'page callback' => '_google_image_sitemap_build',
    'page arguments' => array(
      5,
    ),
    'access arguments' => array(
      'administer google image sitemap',
    ),
  );
  return $items;
}