GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
class-gravityview-field-pipe_recorder.php
Go to the documentation of this file.
1 <?php
2 /**
3  * @file class-gravityview-field-fileupload.php
4  * @package GravityView
5  * @subpackage includes\fields
6  */
7 
9 
10  var $name = 'pipe_recorder';
11 
12  var $_gf_field_class_name = 'GF_Field_Pipe_Recorder';
13 
14  var $is_searchable = false;
15 
16  var $group = 'advanced';
17 
18  public function __construct() {
19  $this->label = esc_html__( 'Pipe Recorder', 'gk-gravityview' );
20  parent::__construct();
21  }
22 
23  public function field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ) {
24 
25  unset( $field_options['search_filter'] );
26 
27  if ( 'edit' === $context ) {
28  return $field_options;
29  }
30 
31  $add_options['embed'] = array(
32  'type' => 'checkbox',
33  'label' => __( 'Display as embedded', 'gk-gravityview' ),
34  'desc' => __( 'Display the video in a player, rather than a direct link to the video.', 'gk-gravityview' ),
35  'value' => true,
36  'merge_tags' => false,
37  );
38 
39  return $add_options + $field_options;
40  }
41 }
42 
Modify field settings by extending this class.
if(empty( $created_by)) $form_id
field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id)
if(false !==strpos( $value, '00:00')) $field_id
string $field_id ID of the field being displayed
Definition: time.php:22