Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // We use policy page content type for indexing taxonomies.
- // See: EEAS-504.
- if ($entity->type == 'eeas_policy_page') {
- $term = taxonomy_term_load($entity->field_eeas_published_on[LANGUAGE_NONE][0]['tid']);
- foreach ($term->description_field as $langcode => $translated_description) {
- $document->addField('sm_policy_page_taxonomy_names', strip_tags($translated_description[0]['value']));
- $document->addField('sm_policy_page_taxonomy_names', i18n_taxonomy_term_name($term, $langcode));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement