You are here

function spam_update_4 in Spam 5

Changes to administrative menus require that the menu cache be flushed. This should have been included with release 1.1.

1 call to spam_update_4()
spam_update_5 in ./spam.install
Original version of spam_update_4 resulted in an error. _update_5 is added for anyone who may have already updated to version 1.1-1.

File

./spam.install, line 353

Code

function spam_update_4() {

  // Kludge so we only execute this update once.
  static $already = FALSE;
  if ($already) {
    return;
  }
  $already = TRUE;
  $ret = array();
  $ret[] = update_sql("DELETE FROM {cache_menu}");
  return $ret;
}