You are here

function hosting_update_6011 in Hosting 6.2

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

Implements hook_update_N().

Clients and packages were imported as belonging to the anonymous user. Reassign them to the admin user.

File

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

Code

function hosting_update_6011() {
  $ret = array();
  db_query("UPDATE {node} SET uid=1 WHERE uid=0 AND type IN ('client', 'package')");
  return $ret;
}