You are here

function synonyms_get_sanitized in Synonyms 7

Retrieve list of sanitized synonyms of an entity.

Parameters

$entity object: Fully loaded entity

Return value

array List of sanitized synonyms of an entity

1 string reference to 'synonyms_get_sanitized'
synonyms_entity_property_info in ./synonyms.module
Implements hook_entity_property_info().

File

./synonyms.module, line 684
Provide synonyms feature for Drupal entities.

Code

function synonyms_get_sanitized($entity, array $options, $name, $entity_type, &$context) {
  return array_map('check_plain', synonyms_get_raw($entity, $options, $name, $entity_type, $context));
}