You are here

function hosting_update_3 in Hostmaster (Aegir) 6

Implements hook_update_N().

Hide hostmaster and hostslave profiles.

File

modules/hosting/hosting.install, line 66
Install, update and uninstall for the hosting module.

Code

function hosting_update_3() {
  $ret = array();
  $result = db_query("select n.nid from {node} n left join hosting_package p on n.nid = p.nid where short_name in ('hostslave', 'hostmaster')");
  while ($obj = db_fetch_object($result)) {
    $in[] = (int) $obj->nid;
  }
  $in = implode(", ", $in);
  $ret[] = update_sql("UPDATE {node} SET status = 0 WHERE nid IN (" . $in . ")", $values);
  return $ret;
}