GFEntryDetail
Source: entry_detail.php:9
Details
- Kind:
class - Namespace:
(global)
Methods
| Method | Description |
|---|---|
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
| Name | Type | Default | Description |
|---|---|---|---|
$form | array | The 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
| Name | Type | Default | Description |
|---|---|---|---|
$display_value | string | The value to be displayed. | |
$field | GF_Field | The Field Object. | |
$lead | array | The Entry Object. | |
$form | array | The 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
| Name | Type | Default | Description |
|---|---|---|---|
$args | array |
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
| Name | Type | Default | Description |
|---|---|---|---|
$allow_display_empty_fields | bool | Determines if the value of the 'show empty fields' checkbox should be used. True when viewing the entry and false when in edit mode. | |
$form | array | The Form object for the current Entry. | |
$lead | array | bool | false | The current Entry object or false. |
Returns
bool
Source: entry_detail.php:1607