views_handler_field_filter_format_name.inc in Views (for Drupal 7) 6.2
File
modules/filter/views_handler_field_filter_format_name.inc
View source
<?php
class views_handler_field_filter_format_name extends views_handler_field {
function construct() {
parent::construct();
$this->additional_fields['name'] = array(
'table' => 'filter_formats',
'field' => 'name',
);
}
function query() {
$this
->ensure_my_table();
$this
->add_additional_fields();
}
function render($values) {
$format_name = $values->{$this->aliases['name']};
if (!$format_name) {
$format = filter_formats(variable_get('filter_default_format', 1));
return check_plain($format->name);
}
return check_plain($format_name);
}
}