You are here

function xmlsitemap_custom_menu in XML sitemap 6.2

Same name and namespace in other branches
  1. 7.2 xmlsitemap_custom/xmlsitemap_custom.module \xmlsitemap_custom_menu()

Implements hook_menu().

File

xmlsitemap_custom/xmlsitemap_custom.module, line 6

Code

function xmlsitemap_custom_menu() {
  $items['admin/settings/xmlsitemap/custom'] = array(
    'title' => 'Custom links',
    'page callback' => 'xmlsitemap_custom_list_links',
    'access arguments' => array(
      'administer xmlsitemap',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'xmlsitemap_custom.admin.inc',
  );
  $items['admin/settings/xmlsitemap/custom/add'] = array(
    'title' => 'Add custom link',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'xmlsitemap_custom_edit_link_form',
    ),
    'access arguments' => array(
      'administer xmlsitemap',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'xmlsitemap_custom.admin.inc',
    'modal' => TRUE,
  );
  $items['admin/settings/xmlsitemap/custom/edit/%xmlsitemap_custom'] = array(
    'title' => 'Edit custom link',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'xmlsitemap_custom_edit_link_form',
      5,
    ),
    'access arguments' => array(
      'administer xmlsitemap',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'xmlsitemap_custom.admin.inc',
    'modal' => TRUE,
  );
  $items['admin/settings/xmlsitemap/custom/delete/%xmlsitemap_custom'] = array(
    'title' => 'Delete custom link',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'xmlsitemap_custom_delete_link_form',
      5,
    ),
    'access arguments' => array(
      'administer xmlsitemap',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'xmlsitemap_custom.admin.inc',
    'modal' => TRUE,
  );
  return $items;
}