You are here

function synonyms_views_handler_field_synonyms::sanitize_value in Synonyms 7

Sanitize the value for output.

Parameters

string $value: The value being rendered.

string $type: The type of sanitization needed. If not provided, check_plain() is used.

Return value

string Returns the safe value.

Overrides views_handler::sanitize_value

File

views/synonyms_views_handler_field_synonyms.inc, line 96
Definition of synonyms_handler_field_synonyms class.

Class

synonyms_views_handler_field_synonyms
Views field handler for displaying synonyms of an entity.

Code

function sanitize_value($value, $type = NULL) {
  if (is_null($type)) {
    $type = 'xss_admin';
  }
  return parent::sanitize_value($value, $type);
}