function hook_search_result_schema in Rich Snippets 7
Gets the schema from the result.
Usually a top level schema defined at http://schema.org/docs/schemas.html. It is only necessary to implement this hook when integration a search backend to the Rich Snippets module.
Parameters
array $result: The search result being rencered.
Return value
string|FALSE The schema associated with the search result.
2 functions implement hook_search_result_schema()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- apachesolr_search_result_schema in ./
rich_snippets.module - Implements hook_rich_snippets_get_schema().
- node_search_result_schema in ./
rich_snippets.module - Implements hook_rich_snippets_get_schema().
1 invocation of hook_search_result_schema()
- rich_snippets_preprocess_search_result in ./
rich_snippets.module - Implements hook_preprocess_HOOK() for theme_search_result().
File
- ./
rich_snippets.api.php, line 59 - Hooks provided by the Rich Snippets module.
Code
function hook_search_result_schema($result) {
return 'Health and medical types';
}