Commit 9ecb17e9 authored by Wolfgang Ziegler's avatar Wolfgang Ziegler
Browse files

#137598 changed module weight to -2 so that nodefamily's form_alter...

#137598 changed module weight to -2 so that nodefamily's form_alter implementation get's callled before nodeprofile's implementation
parent b269ab97
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -20,6 +20,9 @@ function nodefamily_install() {
    default:
      break;
  }
  // Set the module weight to -2, so that the hook_form_alter() implementation
  // get's called before nodeprofile's implementation
  db_query("UPDATE {system} SET weight = -2 WHERE name = 'nodefamily'");
}

function nodefamily_uninstall() {
@@ -74,3 +77,12 @@ function nodefamily_update_2() {
function nodefamily_update_3() {
  return nodefamily_update_1();
}

/**
 * Set module weight to -2, as explained in nodefamily_install().
 */
function nodefamily_update_4() {
  $ret = array();
  $ret[] = update_sql("UPDATE {system} SET weight = -2 WHERE name = 'nodefamily'");
  return $ret;
}