| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: xmlsitemap_menu.install,v 1.1.4.14.2.18 2010/04/29 16:22:13 davereid Exp $ 3 4 /** 5 * @file 6 * Install and uninstall schema and functions for the xmlsitemap_menu module. 7 */ 8 9 /** 10 * Implements hook_uninstall(). 11 */ 12 function xmlsitemap_menu_uninstall() { 13 drupal_load('module', 'menu'); 14 drupal_load('module', 'xmlsitemap'); 15 $menus = array_keys(menu_get_menus()); 16 foreach ($menus as $menu) { 17 xmlsitemap_link_bundle_delete('menu', $menu); 18 } 19 } 20 21 /** 22 * Cleanup variables. 23 */ 24 function xmlsitemap_menu_update_6200() { 25 drupal_load('module', 'menu'); 26 drupal_load('module', 'xmlsitemap'); 27 $menus = array_keys(menu_get_menus()); 28 foreach ($menus as $menu) { 29 $settings = array( 30 'status' => variable_get('xmlsitemap_menu_status_' . $menu, XMLSITEMAP_STATUS_DEFAULT), 31 'priority' => variable_get('xmlsitemap_menu_priority_' . $menu, XMLSITEMAP_PRIORITY_DEFAULT), 32 ); 33 variable_set('xmlsitemap_settings_menu_' . $menu, $settings); 34 variable_del('xmlsitemap_menu_status_' . $menu); 35 variable_del('xmlsitemap_menu_priority_' . $menu); 36 variable_del('xmlsitemap_menu_calculate_priority_' . $menu); 37 } 38 variable_del('xmlsitemap_menu_menus'); 39 variable_del('xmlsitemap_menu_calculate_priority'); 40 return array(); 41 }
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 |