function any_menu_path_update_7101 in Any Menu Path 7
Implements hook_update_N().
File
- ./
any_menu_path.install, line 19 - Install file for setting up things on install - and cleaning up on uninstall.
Code
function any_menu_path_update_7101() {
$any_menu_path_items = variable_get('any_menu_path', array());
foreach ($any_menu_path_items as $mlid) {
db_update('menu_links')
->fields(array(
'external' => 1,
))
->condition('mlid', $mlid)
->execute();
}
return 'Fixed Any Menu Path items that had disappeared from the menu overview.';
}