
* Added a white border at the top of the drop-downs in original * Optimized the "view" test for simplemenu * Enhanced the init() function by creating sub-functions and moving the footer functionality in it * The list of themes is now dynamically generated from the simplemenu themes folder * The list of superfish now includes a 'custom' so the code may come from another module or theme * The Simplemenu variable can now be moved to the header and cache in its own JS file * Create a Devel and Inactive Parents modules for additional functionality * Moved the simplemenu modules in the Menu package * Changed the function generating the menu so other modules may tweak the menu if so they wish * Moved the support for Devel in a separate sub-module. (this is with the new way of doing things & has a corresponding update hook to tell users about the change. It is actually a good example of using the new hook system!)
45 lines
1.1 KiB
PHP
45 lines
1.1 KiB
PHP
<?php
|
|
// $Id$
|
|
|
|
/**
|
|
* Get rid of the variables used by simple menu.
|
|
*/
|
|
function simplemenu_uninstall() {
|
|
db_query("DELETE FROM {variable} WHERE name LIKE 'simplemenu_%'");
|
|
}
|
|
|
|
/**
|
|
* Implementation of hook_update_N().
|
|
*/
|
|
function simplemenu_update_6001() {
|
|
// if navigation menu was used in Drupal 5 use the same in Drupal 6.
|
|
// otherwise, we can't do anything.
|
|
if (variable_get('simplemenu_menu', 1) == 1) {
|
|
variable_set('simplemenu_menu', 'navigation:0');
|
|
}
|
|
return array();
|
|
}
|
|
|
|
/**
|
|
* Implementation of hook_update_N().
|
|
*/
|
|
function simplemenu_update_6002() {
|
|
// fix variable name
|
|
variable_set('simplemenu_detect_popup', variable_get('simplemenu_detect_popop', 1));
|
|
variable_del('simplemenu_detect_popop');
|
|
return array();
|
|
}
|
|
|
|
/**
|
|
* Implementation of hook_update_N().
|
|
*/
|
|
function simplemenu_update_6003() {
|
|
if (variable_get('simplemenu_devel', 0)) {
|
|
drupal_set_message('The Simplemenu Devel is now defined in a separate module. Enable that module if you want to use the devel menu.', 'warning');
|
|
}
|
|
variable_del('simplemenu_devel');
|
|
return array();
|
|
}
|
|
|
|
// vim: ts=2 sw=2 et syntax=php
|