function views_handler_field_fontyourface_provider::render in @font-your-face 7
Same name and namespace in other branches
- 6.2 views/views_handler_field_fontyourface_provider.inc \views_handler_field_fontyourface_provider::render()
- 7.2 modules/fontyourface_ui/views/views_handler_field_fontyourface_provider.inc \views_handler_field_fontyourface_provider::render()
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- views/
views_handler_field_fontyourface_provider.inc, line 13 - Views handler.
Class
- views_handler_field_fontyourface_provider
- Field handler to provide simple renderer that allows linking to a font.
Code
function render($values) {
$info_function = $values->{$this->field_alias} . '_fontyourface_info';
if (function_exists($info_function)) {
$provider = $info_function();
return check_plain($provider['name']);
}
// if
return $values->{$this->field_alias};
}