function rich_snippets_get_apachesolr_image_info_field in Rich Snippets 7
Converts the Solr field containing the image to the info field name.
Parameters
string $field_name: The name of the image field as it is stored in Solr.
Return value
string The name of the image info field as it is stored in Solr.
3 calls to rich_snippets_get_apachesolr_image_info_field()
- Drupal_RichSnippets_Apachesolr_ApachesolrSchemaPreprocessor::decodeImageInfo in lib/
Drupal/ RichSnippets/ Apachesolr/ ApachesolrSchemaPreprocessor.php - Helper function that decodes the image info from the corresponding field.
- rich_snippets_apachesolr_image_indexing_callback in ./
rich_snippets.apachesolr.inc - Indexing callback that stores the image uri.
- rich_snippets_apachesolr_query_alter in ./
rich_snippets.apachesolr.inc - Implements hook_apachesolr_query_alter().
File
- ./
rich_snippets.apachesolr.inc, line 17 - Apache Solr Search Integration hook implementations and helper functions.
Code
function rich_snippets_get_apachesolr_image_info_field($field_name) {
$base_name = substr($field_name, 3);
return 'zm_' . $base_name . '_info';
}