function site_verify_import_ghs in Site verification 7
Same name and namespace in other branches
- 6 site_verify.install \site_verify_import_ghs()
- 7.2 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 
- Run imports from other contrib modules.
File
- ./site_verify.install, line 115 
- Install, update and uninstall functions for the site_verify module.
Code
function site_verify_import_ghs() {
  if ($google_content = variable_get('ghs_string_verify', '')) {
    db_merge('site_verify')
      ->key(array(
      'engine' => 'google',
      'file' => 'googlehostedservice.html',
    ))
      ->fields(array(
      'file_contents' => $google_content,
      'meta' => '',
    ))
      ->execute();
  }
  variable_del('ghs_string_verify');
  module_disable(array(
    'ghs',
  ));
}