| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: xmlsitemap_custom.module,v 1.1.2.8 2010/01/30 20:40:22 davereid Exp $ 3 4 /** 5 * Implements hook_menu(). 6 */ 7 function xmlsitemap_custom_menu() { 8 $items['admin/settings/xmlsitemap/custom'] = array( 9 'title' => 'Custom links', 10 'page callback' => 'xmlsitemap_custom_list_links', 11 'access arguments' => array('administer xmlsitemap'), 12 'type' => MENU_LOCAL_TASK, 13 'file' => 'xmlsitemap_custom.admin.inc', 14 ); 15 $items['admin/settings/xmlsitemap/custom/list'] = array( 16 'title' => 'List', 17 'access arguments' => array('administer xmlsitemap'), 18 'type' => MENU_DEFAULT_LOCAL_TASK, 19 'weight' => -10, 20 'file' => 'xmlsitemap_custom.admin.inc', 21 ); 22 $items['admin/settings/xmlsitemap/custom/add'] = array( 23 'title' => 'Add custom link', 24 'page callback' => 'drupal_get_form', 25 'page arguments' => array('xmlsitemap_custom_edit_link_form'), 26 'access arguments' => array('administer xmlsitemap'), 27 'type' => MENU_LOCAL_TASK, 28 'file' => 'xmlsitemap_custom.admin.inc', 29 ); 30 $items['admin/settings/xmlsitemap/custom/edit/%xmlsitemap_custom'] = array( 31 'title' => 'Edit custom link', 32 'page callback' => 'drupal_get_form', 33 'page arguments' => array('xmlsitemap_custom_edit_link_form', 5), 34 'access arguments' => array('administer xmlsitemap'), 35 'type' => MENU_CALLBACK, 36 'file' => 'xmlsitemap_custom.admin.inc', 37 ); 38 $items['admin/settings/xmlsitemap/custom/delete/%xmlsitemap_custom'] = array( 39 'title' => 'Edit custom link', 40 'page callback' => 'drupal_get_form', 41 'page arguments' => array('xmlsitemap_custom_delete_link_form', 5), 42 'access arguments' => array('administer xmlsitemap'), 43 'type' => MENU_CALLBACK, 44 'file' => 'xmlsitemap_custom.admin.inc', 45 ); 46 return $items; 47 } 48 49 /** 50 * Menu load callback; load a custom sitemap link from the {xmlsitemap} table. 51 * 52 * @param $id 53 * The sitemap link ID of the custom link to load. 54 * 55 * @see xmlsitemap_link_load() 56 */ 57 function xmlsitemap_custom_load($id) { 58 return xmlsitemap_link_load('custom', $id); 59 } 60 61 /** 62 * Implements hook_xmlsitemap_link_info(). 63 */ 64 function xmlsitemap_custom_xmlsitemap_link_info() { 65 return array( 66 'custom' => array( 67 'label' => t('Custom links'), 68 ), 69 ); 70 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |