ri_gfdp_save_form_settings

The Gravity Forms Data Persistence Add-On Reloaded ri gfdp save form settings function.

Description

ri_gfdp_save_form_settings( $form ); 

Parameters (1)

0. $form
The form.

Usage

  1. if ( !function_exists( 'ri_gfdp_save_form_settings' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'gravity-forms-data-persistence-add-on-reloaded/gravity-forms-data-persistence-add-on-reloaded.php'; 
  3.  
  4. // The form. 
  5. $form = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = ri_gfdp_save_form_settings($form); 
  9.  

Defined (1)

The function is defined in the following location(s).

/gravity-forms-data-persistence-add-on-reloaded.php  
  1. function ri_gfdp_save_form_settings( $form ) { 
  2.  
  3. //Remove old setting names 
  4. unset( $form['isPersistent'] ); 
  5. unset( $form['isEnableMulipleEntry'] ); 
  6. unset( $form['isEnablePersistentClear'] ); 
  7.  
  8. //update settings 
  9. $form['ri_gfdp_persist'] = rgpost( 'ri_gfdp_persist' ); 
  10. $form['ri_gfdp_persist_duration_int'] = rgpost( 'ri_gfdp_persist_duration_int' ); 
  11. $form['ri_gfdp_persist_duration'] = rgpost( 'ri_gfdp_persist_duration' ); 
  12. $form['ri_gfdp_multiple_entries'] = rgpost( 'ri_gfdp_multiple_entries' ); 
  13. $form['ri_gfdp_persist_clear'] = rgpost( 'ri_gfdp_persist_clear' ); 
  14. $form['ri_gfdp_persist_guest'] = rgpost( 'ri_gfdp_persist_guest' ); 
  15.  
  16. return $form; 
  17.