You are here

function site_verify_import_ghs in Site verification 7

Same name and namespace in other branches
  1. 6 site_verify.install \site_verify_import_ghs()
  2. 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',
  ));
}