You are here

function front_page_update_6202 in Front Page 6.2

File

./front_page.install, line 151
Install, update and uninstall functions for the front page module.

Code

function front_page_update_6202() {

  //need to set the weight of the module to be greater than the global redirect module
  $weight = db_result(db_query("SELECT weight FROM {system} WHERE name = 'globalredirect'"));
  if (!is_numeric($weight)) {
    $weight = 0;
  }
  $weight++;
  $ret = array();
  $ret[] = update_sql("UPDATE {system} SET weight = {$weight} WHERE name = 'front_page'");
  return $ret;
}