By noersoft on
Hi,
I'm a biginner who starts the learning Drupal 6.x. During testing the example codes, I could't solve the following problem.
I was testing menu hook functions by changing the keyed values of hook_menu().
At first, I set the title to 'Greeting'. It looks great.
Next, I changed it to 'Hello', then clicked 'rebuild menu' and 'empty cache' links of devel navigation bar.
But the title remains 'Greeting'.
I observed the 'menu_links' table of my drupal db, link_title field for this item was still 'Greeting'.
I removed this row manually, and rebuilt it. It was fine.
Plz, let me know how to clean 'menu_links' table of drupal's db automatically.
thanks.
Comments
run update.php. It did it
running update.php might help
---
Robert Garrigos
Professional site: http://garrigos.cat
Catalan Drupal Users Group: drupal.cat
Rebuild menu should have done it
or visit 'admin/admin/modules', something is not right if the menu is not updated. Disable and re-enable the module should rebuild its menu also.
mmmm I think I'm having an
mmmm I think I'm having an issue with the menu translation module (i18n package) and that's why it seems like the menu_rebuild function is not doing what it's supposed to do.... need to check that.
---
Robert Garrigos
Professional site: http://garrigos.cat
Catalan Drupal Users Group: drupal.cat
If you are developer, you may
If you are developer, you may try to use menu_rebuild() function
If not, you can rebuild menu_router by DTools (wsod)
See also: #514898: "You do not have any administrative items." - Callback: system_main_admin_page() doesn't exist!
The question was how to clean
The question was how to clean the {menu_links} table, not the {menu_router} table. I have this same issue, menu items never get cleaned out of {menu_links} table even when the menu router is rebuilt and no paths point to the menu item in {menu_links}. The {menu_links} table can eventually get bloated with links that visually never show and point to nothing.