You are here

function hook_preprocess_search_result_SCHEMA_schema in Rich Snippets 7

Preprocess the search result template variables per schema.

SCHEMA is the normalized value returned by hook_search_result_schema() implementations. All characters are converted to lowercase, and all spaces are replaced by underscores. For example, the "Health and medical types" schema is normalized to "health_and_medical_types".

Parameters

array &$variables: The template variables being preprocessed.

1 function implements hook_preprocess_search_result_SCHEMA_schema()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

rich_snippets_preprocess_search_result_event_schema in ./rich_snippets.preprocess.inc
Implements preprocess_search_result_SCHEMA_schema() for event.

File

./rich_snippets.api.php, line 19
Hooks provided by the Rich Snippets module.

Code

function hook_preprocess_search_result_SCHEMA_schema(array &$variables, Drupal_RichSnippets_SchemaPreprocessorInterface $preprocessor) {
  $preprocessor
    ->addImage('image');
  $preprocessor
    ->addTextToInfo('location');
}