GFFormDetail
Source: form_detail.php:12
Details
- Kind:
class - Namespace:
(global)
Methods
| Method | Description |
|---|---|
get_field_groups() | Prepare form field groups. |
save_form_info() | Saves form meta. Note the special requirements for the meta string. |
update_recent_forms() | Adds the form ID to the beginning of the list of recently opened forms and stores the array for the current user. |
editor_notices() | Display notices at the top of the form editor. |
editor_notice_for_ajax_save_failure() | Display editor notice for forms that failed AJAX save. |
editor_notice_for_legacy_form() | Display editor notice for form with legacy mode enabled. |
need_deprecated_class_message() | Check whether we need to display a message about deprecated ready classes. |
editor_notice_for_deprecated_ready_classes() | Display editor notice for deprecated ready classes. |
Method Reference
get_field_groups()
public static function get_field_groups()
Prepare form field groups.
Returns
array
Since: 2.0.7.7
Source: form_detail.php:2912
save_form_info()
public static function save_form_info( $id, $form_json )
Saves form meta. Note the special requirements for the meta string.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$id | int | ||
$form_json | string | A valid JSON string. The JSON is manipulated before decoding and is designed to work together with jQuery.toJSON() rather than json_encode. Avoid using json_encode as it will convert unicode characters into their respective entities with slashes. These slashes get stripped so unicode characters won't survive intact. |
Returns
array
Since:
unknown2.6(Use GF_Form_CRUD_Handler To save the form.)
Source: form_detail.php:3345
update_recent_forms()
public static function update_recent_forms( $form_id )
Adds the form ID to the beginning of the list of recently opened forms and stores the array for the current user.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$form_id |
Since: 2.0
Source: form_detail.php:3458
editor_notices()
public static function editor_notices( $form )
Display notices at the top of the form editor.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$form | array |
Since: 2.5
Source: form_detail.php:3469
editor_notice_for_ajax_save_failure()
public static function editor_notice_for_ajax_save_failure( $form )
Display editor notice for forms that failed AJAX save.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$form | array |
Since: 2.6.2
Source: form_detail.php:3482
editor_notice_for_legacy_form()
public static function editor_notice_for_legacy_form( $form )
Display editor notice for form with legacy mode enabled.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$form | array |
Since: 2.6
Source: form_detail.php:3523
need_deprecated_class_message()
public static function need_deprecated_class_message( $form )
Check whether we need to display a message about deprecated ready classes.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$form | array |
Since: 2.5
Source: form_detail.php:3559
editor_notice_for_deprecated_ready_classes()
public static function editor_notice_for_deprecated_ready_classes( $form )
Display editor notice for deprecated ready classes.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$form | array |
Since: 2.6
Source: form_detail.php:3621