You are here

function gss_gss_search_result in Google Site Search 8

Implements hook_gss_search_result().

File

./gss.module, line 30
Contains gss.module..

Code

function gss_gss_search_result($result) {
  if (isset($result->pagemap->cse_thumbnail[0])) {
    return [
      'cse_thumbnail' => [
        '#theme' => 'image',
        '#uri' => $result->pagemap->cse_thumbnail[0]->src,
      ],
    ];
  }
}