function hosting_site_update_4 in Hosting 7.3
Same name and namespace in other branches
- 5 site/hosting_site.install \hosting_site_update_4()
- 6.2 site/hosting_site.install \hosting_site_update_4()
- 7.4 site/hosting_site.install \hosting_site_update_4()
Implements hook_update_N().
Add verified timestamp to the site
File
- site/
hosting_site.install, line 190 - Define database schema and update functions for the hosting_site module.
Code
function hosting_site_update_4() {
$ret = array();
$now = time();
$ret[] = update_sql("ALTER TABLE {hosting_site} ADD COLUMN verified int(10) NOT NULL default '0'");
db_query("UPDATE {hosting_site} SET verified=%d WHERE status=1", $now);
return $ret;
}