You are here

function hosting_update_3 in Hosting 6.2

Same name and namespace in other branches
  1. 5 hosting.install \hosting_update_3()
  2. 7.4 hosting.install \hosting_update_3()
  3. 7.3 hosting.install \hosting_update_3()

Implements hook_update_N().

Hide hostmaster and hostslave profiles.

File

./hosting.install, line 69
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;
}