| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: views_handler_field_custom.inc,v 1.1 2009/01/30 00:01:41 merlinofchaos Exp $ 3 4 /** 5 * A handler to provide a field that is completely custom by the administrator. 6 * 7 * @ingroup views_field_handlers 8 */ 9 class views_handler_field_custom extends views_handler_field { 10 function query() { 11 // do nothing -- to override the parent query. 12 } 13 14 function option_definition() { 15 $options = parent::option_definition(); 16 17 // Override the alter text option to always alter the text. 18 $options['alter']['contains']['alter_text'] = array('default' => TRUE); 19 return $options; 20 } 21 22 function options_form(&$form, &$form_state) { 23 parent::options_form($form, $form_state); 24 25 // Remove the checkbox 26 unset($form['alter']['alter_text']); 27 unset($form['alter']['text']['#dependency']); 28 unset($form['alter']['text']['#process']); 29 } 30 31 function render($values) { 32 // Nothing to render. 33 return ''; 34 } 35 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |