You are here

function site_verify_load in Site verification 7.2

Same name and namespace in other branches
  1. 6 site_verify.module \site_verify_load()
  2. 7 site_verify.module \site_verify_load()

Menu load callback; loads a site verification record.

This also loads the engine details if the record was found.

Parameters

$svid: A site verification ID.

Return value

An array of the site verification record, or FALSE if not found.

1 call to site_verify_load()
site_verify_output in ./site_verify.module
Output the page contents for a file-based custom verification page.

File

./site_verify.module, line 113
Site Verify provides a tool for verification codes (meta tags or custom pages) to be added to the site, for verification with external search engines.

Code

function site_verify_load($svid) {
  $record = db_query("SELECT svid, engine, file, file_contents, meta FROM {site_verify} WHERE svid = :svid", array(
    ':svid' => $svid,
  ))
    ->fetchAssoc();
  if ($record) {
    $record['engine'] = site_verify_engine_load($record['engine']);
  }
  return $record;
}