2 // $Id: views_handler_field_custom.inc,v 1.1 2009/01/30 00:01:41 merlinofchaos Exp $
5 * A handler to provide a field that is completely custom by the administrator.
7 * @ingroup views_field_handlers
9 class views_handler_field_custom extends views_handler_field {
11 // do nothing -- to override the parent query.
14 function option_definition() {
15 $options = parent::option_definition();
17 // Override the alter text option to always alter the text.
18 $options['alter']['contains']['alter_text'] = array('default' => TRUE);
22 function options_form(&$form, &$form_state) {
23 parent::options_form($form, $form_state);
25 // Remove the checkbox
26 unset($form['alter']['alter_text']);
27 unset($form['alter']['text']['#dependency']);
28 unset($form['alter']['text']['#process']);
31 function render($values) {