Skip to main content

GFEntryDetail

Source: entry_detail.php:9

Details

  • Kind: class
  • Namespace: (global)

Methods

MethodDescription
add_meta_boxes()Prepare meta boxes and screen options.
set_current_form()Caches the current form.
entry_field_value_recursive()Recursively applies the gform_entry_field_value filter to sub-fields
meta_box_print_entry()Display the button to print an entry.
maybe_display_empty_fields()Helper to determine if empty fields should be displayed when the lead detail grid is processed.

Method Reference

add_meta_boxes()

public static function add_meta_boxes()

Prepare meta boxes and screen options.

Source: entry_detail.php:35

set_current_form()

public static function set_current_form( $form )

Caches the current form.

Parameters

NameTypeDefaultDescription
$formarrayThe form to be cached.

Since: 2.4.4.1

Source: entry_detail.php:140

entry_field_value_recursive()

public static function entry_field_value_recursive( $display_value, $field, $lead, $form )

Recursively applies the gform_entry_field_value filter to sub-fields

Parameters

NameTypeDefaultDescription
$display_valuestringThe value to be displayed.
$fieldGF_FieldThe Field Object.
$leadarrayThe Entry Object.
$formarrayThe Form Object.

Returns

  • string — The modified display value

Since: 3.0.0

Source: entry_detail.php:1216

meta_box_print_entry()

public static function meta_box_print_entry( $args )

Display the button to print an entry.

Parameters

NameTypeDefaultDescription
$argsarray

Since: 2.5

Source: entry_detail.php:1371

maybe_display_empty_fields()

public static function maybe_display_empty_fields( $allow_display_empty_fields, $form, $lead=false )

Helper to determine if empty fields should be displayed when the lead detail grid is processed.

Parameters

NameTypeDefaultDescription
$allow_display_empty_fieldsboolDetermines if the value of the 'show empty fields' checkbox should be used. True when viewing the entry and false when in edit mode.
$formarrayThe Form object for the current Entry.
$leadarray | boolfalseThe current Entry object or false.

Returns

  • bool

Source: entry_detail.php:1607