function profanity_views_handler_field::render in Profanity 7
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- ./
profanity.views.inc, line 171 - Provide additional Views fields for entity content.
Class
- profanity_views_handler_field
- Field handler to provide simple renderer that allows linking to a entity. Definition terms:
Code
function render($values) {
$value = $this
->get_value($values);
$sanitised = $this
->sanitize_value($value);
// Run through profanity lists.
if (!empty($this->options['profanity_lists'])) {
foreach ($this->options['profanity_lists'] as $list_name) {
$sanitised = profanity_list_execute($list_name, $sanitised);
}
}
return $this
->render_link($sanitised, $values);
}