* Many fixes as found in many issues.
[#565736] [#412500] [#421732] [#766466] * Passed through coder (fixed tabs, missing spaces) * Added missing hook_uninstall() function to delete variables * Fixed some formatting in code (.module, .inc, .css, .js)
This commit is contained in:
@@ -1,14 +1,23 @@
|
||||
<?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) {
|
||||
if (variable_get('simplemenu_menu', 1) == 1) {
|
||||
variable_set('simplemenu_menu', 'navigation:0');
|
||||
}
|
||||
return array();
|
||||
}
|
||||
}
|
||||
|
||||
// vim: ts=2 sw=2 et syntax=php
|
||||
|
Reference in New Issue
Block a user