ri_gfdp_advanced_settings

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

Description

ri_gfdp_advanced_settings( $position, $form_id ); 

Parameters (2)

0. $position
The position.
1. $form_id
The form id.

Usage

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

Defined (1)

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

/gravity-forms-data-persistence-add-on-reloaded.php  
  1. function ri_gfdp_advanced_settings( $position, $form_id ) { 
  2. if ( $position == 550 ) { 
  3. ?> 
  4. <li class="field_ri_gfdp_no_persist_setting"> 
  5. <input type="checkbox" id="ri_gfdp_no_persist" name="ri_gfdp_no_persist" 
  6. onclick="SetFieldProperty('ri_gfdp_no_persist', this.checked);"/> 
  7. <label for="ri_gfdp_no_persist" class="inline"> 
  8. <?php _e( 'Do not allow persistence', 'ri_gfdp' ); ?> 
  9. <?php gform_tooltip( 'ri_gfdp_no_persist' ); ?> 
  10. </label> 
  11. </li> 
  12. <?php