Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DELETE
- FROM yourDatabaseName.menu_links
- WHERE menu_name LIKE 'main-menu'
- AND depth > 2
- AND plid != 597
- /**
- * Hide old menu item.
- */
- function module_name_update_7000() {
- db_update('menu_links')
- ->fields(array('hidden' => '1'))
- ->condition('menu_name', 'main-menu', '=')
- ->condition('p1', '5947', '=')
- ->execute();
- drupal_flush_all_caches();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement