GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
class-gravityview-field-html.php
Go to the documentation of this file.
1 <?php
2 /**
3  * @file class-gravityview-field-html.php
4  * @package GravityView
5  * @subpackage includes\fields
6  */
7 
8 /**
9  * Add custom options for HTML field
10  */
12 
13  var $name = 'html';
14 
15  var $is_searchable = false;
16 
17  var $is_sortable = false;
18 
19  var $_gf_field_class_name = 'GF_Field_HTML';
20 
21  var $group = 'standard';
22 
23  var $icon = 'dashicons-media-code';
24 
25  public function __construct() {
26  $this->label = esc_html__( 'HTML', 'gk-gravityview' );
27  parent::__construct();
28  }
29 
30  public function field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ) {
31 
32  unset ( $field_options['search_filter'], $field_options['show_as_link'] );
33 
34  return $field_options;
35  }
36 
37 }
38 
Modify field settings by extending this class.
new GravityView_Field_HTML
field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id)
if(empty( $created_by)) $form_id
if(false !==strpos( $value, '00:00')) $field_id
string $field_id ID of the field being displayed
Definition: time.php:22
Add custom options for HTML field.