function push_notifications_views_handler_field_push_notifications_type::render in Push Notifications 7
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
Class
- push_notifications_views_handler_field_push_notifications_type
- Field handler to display token type.
Code
function render($values) {
$token_type_id = $this
->get_value($values);
if ($this->options['type_format'] == 'type_id') {
return $token_type_id;
}
// Show the token type name by default.
return $this
->get_token_type_name($token_type_id);
}