How To Rebuild The Menu In Drupal 6

Submitted by Bevan Rudge on August 19, 2008 - 8:17am

To rebuild the menu in Drupal 6 you have to go to admin/build/modules.

In drupal 5 the menu is cached in the cache_menu table, so it is easy to invoke a menu-rebuild by emptying the table with a simple mysql command like TRUNCATE cache_menu;. (I have a handy script that empties all tables starting with cache_).

However in drupal 6, to get a module's hook_menu() re-invoked, you have to rebuild the menu by going to admin/build/modules. You do not need to submit the form. Going to that page with appropriate permissions is sufficient to invoke a menu-rebuild.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Submitted by Anonymous (not verified) on April 7, 2009 - 1:55pm.

Thanks for the tip--that saved me some serious time!

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <p> <a> <em> <strong> <cite> <ul> <ol> <li> <dl> <dt> <dd> <img> <b> <i> <h2> <h3> <pre> <br> <font> <hr> <s> <strike> <code> <span> <blockquote> <acronym> <del> <ins> <table> <th> <tbody> <tr> <td> <div>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options