function site_verify_import_ghs in Site verification 6
Same name and namespace in other branches
- 7.2 site_verify.install \site_verify_import_ghs()
- 7 site_verify.install \site_verify_import_ghs()
Import data from Google Apps Verification.
2 calls to site_verify_import_ghs()
- site_verify_install in ./
site_verify.install - Implements hook_install().
- site_verify_update_3 in ./
site_verify.install
File
- ./
site_verify.install, line 115 - Install, update and uninstall functions for the site_verify module.
Code
function site_verify_import_ghs(&$ret) {
if (!db_result(db_query("SELECT 1 FROM {site_verify} WHERE engine = 'google' AND file <> 'googlehostedservice.html'"))) {
if ($google_content = db_escape_string(variable_get('ghs_string_verify', ''))) {
$ret[] = update_sql("INSERT INTO {site_verify} (engine, file, file_contents, meta) VALUES ('google', 'googlehostedservice.html', '{$google_content}', '')");
}
}
variable_del('ghs_string_verify');
}