LSformElement : provide class name of element in template variables
authorBenjamin Renard <brenard@easter-eggs.com>
Wed, 19 Nov 2014 23:31:08 +0000 (00:31 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Wed, 19 Nov 2014 23:31:08 +0000 (00:31 +0100)
public_html/includes/class/class.LSformElement.php

index af54aa7..db19bfd 100644 (file)
@@ -287,7 +287,8 @@ class LSformElement {
           'values' => $this -> values,
           'attr_name' => $this -> name,
           'noValueTxt' => ( (isset($this -> params['no_value_label']))? __($this -> params['no_value_label']):_('No set value') ),
-          'fieldTemplate' => $this -> fieldTemplate
+          'fieldTemplate' => $this -> fieldTemplate,
+          'fieldType' => get_class($this)
         )
       )
     );