GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
Public Member Functions | Protected Member Functions | Protected Attributes
GravityView_Plugin_Hooks_Gravity_Forms_Signature Class Reference

More...

Inheritance diagram for GravityView_Plugin_Hooks_Gravity_Forms_Signature:
GravityView_Plugin_and_Theme_Hooks

Public Member Functions

 after_edit_entry ($form, $entry_id)
 We need to remove the $value used by Gravity Forms so it instead checks for the $_POST field values. More...
 
 edit_entry_field_input ($field_content= '', $field, $value= '', $lead_id=0, $form_id=0)
 The Signature Addon only displays the output in the editable form if it thinks it's in the Admin or a form has been submitted. More...
 
- Public Member Functions inherited from GravityView_Plugin_and_Theme_Hooks
 __construct ()
 GravityView_Theme_Support constructor. More...
 
 merge_content_meta_keys ($meta_keys=array(), $post_id=0)
 Merge plugin or theme meta keys that store shortcode data with existing keys to check. More...
 
 merge_noconflict_scripts ($handles)
 Merge plugin or theme scripts with existing no-conflict scripts. More...
 
 merge_noconflict_styles ($handles)
 Merge plugin or theme styles with existing no-conflict styles. More...
 
 merge_post_type_support ($supports=array(), $is_hierarchical=false)
 Merge plugin or theme post type support definitions with existing support values. More...
 

Protected Member Functions

 add_hooks ()
 
- Protected Member Functions inherited from GravityView_Plugin_and_Theme_Hooks
 add_hooks ()
 Add filters for meta key and script/style handles, if defined. More...
 

Protected Attributes

 $class_name = 'GFSignature'
 string Class that should be exist in a plugin or theme. More...
 
- Protected Attributes inherited from GravityView_Plugin_and_Theme_Hooks
 $class_name = false
 string Optional. More...
 
 $constant_name = false
 string Optional. More...
 
 $content_meta_keys = array()
 Define the keys to be parsed by the gravityview/data/parse/meta_keys hook. More...
 
 $function_name = false
 string Optional. More...
 
 $post_type_support = array()
 Define features in the admin editor used by the theme or plugin to be used when registering the GravityView post type. More...
 
 $script_handles = array()
 Define script handles used by the theme or plugin to be parsed by the gravityview/data/parse/meta_keys hook. More...
 
 $style_handles = array()
 Define style handles used by the theme or plugin to be parsed by the gravityview/data/parse/meta_keys hook. More...
 

Detailed Description

Since
1.17

Definition at line 19 of file class-gravityview-plugin-hooks-gravity-forms-signature.php.

Member Function Documentation

add_hooks ( )
protected
after_edit_entry (   $form,
  $entry_id 
)

We need to remove the $value used by Gravity Forms so it instead checks for the $_POST field values.

In ~line 541, this code would be used if we didn't override in this method:

if (RG_CURRENT_VIEW == "entry" && $value){

We don't want that code (with the download/delete icons). So unsetting the $_POST here forces using the "sign again" code instead.

See also
GFSignature::signature_input
Parameters
array$formGF form array
int$entry_idEntry ID being edited

Definition at line 51 of file class-gravityview-plugin-hooks-gravity-forms-signature.php.

References $field, and $form.

edit_entry_field_input (   $field_content = '',
  $field,
  $value = '',
  $lead_id = 0,
  $form_id = 0 
)

The Signature Addon only displays the output in the editable form if it thinks it's in the Admin or a form has been submitted.

Since
1.17
Parameters
string$field_contentAlways empty. Returning not-empty overrides the input.
GF_Field$field
string | array$valueIf array, it's a field with multiple inputs. If string, single input.
int$lead_idLead ID. Always 0 for the gform_field_input filter.
int$form_idForm ID
Returns
string Empty string forces Gravity Forms to use the $_POST values

Definition at line 73 of file class-gravityview-plugin-hooks-gravity-forms-signature.php.

References $entry, $field, GravityView_View\getInstance(), and gravityview_get_context().

Field Documentation

$class_name = 'GFSignature'
protected

string Class that should be exist in a plugin or theme.

Used to check whether plugin is active.

Since
1.17

Definition at line 25 of file class-gravityview-plugin-hooks-gravity-forms-signature.php.


The documentation for this class was generated from the following file: