You are here

function theme_google_appliance_search_result_array in Google Search Appliance 5

Same name and namespace in other branches
  1. 6.2 google_appliance.module \theme_google_appliance_search_result_array()
1 theme call to theme_google_appliance_search_result_array()
google_appliance_search in ./google_appliance.module
Implementation of hook_search()

File

./google_appliance.module, line 458
GSA integration

Code

function theme_google_appliance_search_result_array($result) {
  return array(
    'link' => $result->U,
    'user' => $result
      ->getMetaData('user'),
    'type' => $result
      ->getMetaData('type'),
    'title' => strip_tags($result->T),
    'date' => strtotime($result
      ->getMetaData('date')),
    'snippet' => decode_entities((string) $result->S),
  );
}