[development] modify permissions using hook_menu_alter()

Earnie Boyd earnie at users.sourceforge.net
Wed Apr 29 12:55:50 UTC 2009


Quoting Karoly Negyesi <karoly at negyesi.net>:

> The devel needs a bug report.
>

I don't understand what is wrong with devel to open a report.  The  
callback just does

<code>
/**
  * Menu callback; clears all caches, then redirects to the previous page.
  */
function devel_cache_clear() {
   // If you used to implement our own cache clear hook, implement  
hook_flush_caches instead. See drupal_flush_all_caches()
   drupal_flush_all_caches();

   drupal_set_message('Cache cleared.');

   drupal_goto();
}
</code>

And http://api.drupal.org/api/function/drupal_flush_all_caches/6 calls  
menu_rebuild().

--
Earnie
-- http://r-feed.com/           -- http://for-my-kids.com/
-- http://www.4offer.biz/       -- http://give-me-an-offer.com/




More information about the development mailing list