Commit 6a2fd673 authored by vadim's avatar vadim
Browse files

#1087212: getting rid of errors

parent bbe7d2e6
......@@ -52,13 +52,16 @@ function menu_token_uninstall() {
* Implementation of hook_update_N().
*/
function menu_token_update_6000() {
return drupal_install_schema('menu_token');
$ret = drupal_install_schema('menu_token');
drupal_get_schema(NULL, TRUE);
return $ret;
}
/**
* Implementation of hook_update_N().
*/
function menu_token_update_6001() {
$ret = array();
foreach (variable_get('menu_token_enabled', array()) as $mlid => $link_path) {
$item = (object)array('mlid' => $mlid, 'link_path' => $link_path);
$status = drupal_write_record('menu_token', $item);
......@@ -69,4 +72,5 @@ function menu_token_update_6001() {
unset($item);
}
variable_del('menu_token_enabled');
return $ret;
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment