You are here

function hosting_client_update_6004 in Hosting 7.4

Same name and namespace in other branches
  1. 6.2 client/hosting_client.install \hosting_client_update_6004()
  2. 7.3 client/hosting_client.install \hosting_client_update_6004()

Implements hook_update_N().

Make all sites with client relationship lost owned by the default client.

File

client/hosting_client.install, line 352
Define database schema, install and update functions for the hosting_client module.

Code

function hosting_client_update_6004() {
  $ret = array();
  $ret[] = update_sql("UPDATE {hosting_site} SET client = %d WHERE client = 0", HOSTING_DEFAULT_CLIENT);
  return $ret;
}