views_handler_field_custom.inc in Views (for Drupal 7) 6.2
File
handlers/views_handler_field_custom.inc
View source
<?php
class views_handler_field_custom extends views_handler_field {
function query() {
}
function option_definition() {
$options = parent::option_definition();
$options['alter']['contains']['alter_text'] = array(
'default' => TRUE,
);
$options['hide_alter_empty'] = array(
'default' => FALSE,
);
return $options;
}
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
unset($form['alter']['alter_text']);
unset($form['alter']['text']['#dependency']);
unset($form['alter']['text']['#process']);
}
function render($values) {
return $this->options['alter']['text'];
}
}