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