You are here

function menu_per_role_update_6003 in Menu Per Role 6

hook_update_N();

File

./menu_per_role.install, line 144
Initialize and clean up the Menu per role module.

Code

function menu_per_role_update_6003() {
  $ret = array();

  // We do not need to have empty entries, this will accelerate total
  // processing time on every page load
  $ret[] = update_sql("DELETE FROM {menu_per_role} WHERE rids = '' AND hrids = ''");
  return $ret;
}