You are here

function hosting_site_update_6200 in Hosting 7.4

Same name and namespace in other branches
  1. 6.2 site/hosting_site.install \hosting_site_update_6200()
  2. 7.3 site/hosting_site.install \hosting_site_update_6200()

Implements hook_update_N().

Rename tasks login_reset and backup_delete to use dashes

We re-named 'login_reset' tasks to 'login-reset' and 'backup_delete' to 'backup-delete'.

File

site/hosting_site.install, line 345
Define database schema and update functions for the hosting_site module.

Code

function hosting_site_update_6200() {
  $ret = array();
  $replacements = array(
    'backup_delete' => 'backup-delete',
    'login_reset' => 'login-reset',
  );
  foreach ($replacements as $old => $new) {
    db_query("UPDATE {hosting_task} SET task_type = '%s' where task_type = '%s'", $new, $old);
  }
  return $ret;
}