function hosting_site_update_6200 in Hosting 7.3
Same name and namespace in other branches
- 6.2 site/hosting_site.install \hosting_site_update_6200()
- 7.4 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 324 - 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;
}