function views_handler_field_file_extension::render
Same name in other branches
- 7.x-3.x modules/system/views_handler_field_file_extension.inc \views_handler_field_file_extension::render()
Overrides views_handler_field::render
File
-
modules/
system/ views_handler_field_file_extension.inc, line 8
Class
- views_handler_field_file_extension
- Returns a pure file extension of the file, for example 'module'.
Code
function render($values) {
$value = $this->get_value($values);
if (preg_match('/\\.([^\\.]+)$/', $value, $match)) {
return $this->sanitize_value($match[1]);
}
}