? 810190_13.patch
? PATCHES.txt
Index: views_customfield.views.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_customfield/Attic/views_customfield.views.inc,v
retrieving revision 1.1.2.6
diff -u -p -r1.1.2.6 views_customfield.views.inc
--- views_customfield.views.inc	15 Jun 2009 06:16:25 -0000	1.1.2.6
+++ views_customfield.views.inc	14 Sep 2010 17:17:47 -0000
@@ -13,7 +13,7 @@ function views_customfield_views_handler
     ),
     'handlers' => array(
       'views_customfield_handler_field_markup' => array(
-        'parent' => 'views_handler_field',
+        'parent' => 'views_handler_field_custom',
       ),
       'views_customfield_handler_field_phpcode' => array(
         'parent' => 'views_handler_field',
Index: includes/views_customfield_handler_field_markup.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_customfield/includes/Attic/views_customfield_handler_field_markup.inc,v
retrieving revision 1.1.2.5
diff -u -p -r1.1.2.5 views_customfield_handler_field_markup.inc
--- includes/views_customfield_handler_field_markup.inc	19 Nov 2008 13:53:47 -0000	1.1.2.5
+++ includes/views_customfield_handler_field_markup.inc	14 Sep 2010 17:17:47 -0000
@@ -9,35 +9,25 @@
 /**
  * Field handler to display custom markup text.
  */
-class views_customfield_handler_field_markup extends views_handler_field {
+class views_customfield_handler_field_markup extends views_handler_field_custom {
 
-  function query() {
-    $this->field_alias = 'customfield_markup_'. $this->position;
-    
-    $value = db_escape_string($this->options['value']);
-    $this->query->add_field('', "'$value'", $this->field_alias);
-  }
-  
   function option_definition() {
     $options = parent::option_definition();
-    $options['value'] = array('default' => '');
     $options['format'] = array('default' => FILTER_FORMAT_DEFAULT);
     return $options;
   }
 
   function options_form(&$form, &$form_state) {
     parent::options_form($form, $form_state);
-    $form['value'] = array(
-      '#type' => 'textarea',
-      '#title' => t('Value'),
-      '#default_value' => $this->options['value'],
-      '#rows' => 5,
-    );
     $form['format'] = filter_form($this->options['format'], NULL, array('options', 'format'));
   }
 
-  function render($values) {
-    $value = $values->{$this->field_alias};
+  /**
+   * Render this field as altered text, from a fieldset set by the user.
+   */
+  function render_altered($alter, $tokens) {
+    $value = strtr($alter['text'], $tokens);
     return check_markup($value, $this->options['format'], FALSE);
   }
+
 }
