ninja_forms_tab_field_settings

The Ninja Forms ninja forms tab field settings function.

Description

ninja_forms_tab_field_settings(); 

Usage

  1. if ( !function_exists( 'ninja_forms_tab_field_settings' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/admin/pages/ninja-forms/tabs/field-settings/field-settings.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ninja_forms_tab_field_settings(); 
  7.  

Defined (1)

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

/deprecated/includes/admin/pages/ninja-forms/tabs/field-settings/field-settings.php  
  1. function ninja_forms_tab_field_settings() { 
  2. global $wpdb; 
  3.  
  4. if ( isset ( $_REQUEST['form_id'] ) ) { 
  5. $form_id = absint( $_REQUEST['form_id'] ); 
  6. } else { 
  7. $form_id = ''; 
  8.  
  9. if ( ! empty ( $form_id ) && 'new' != $form_id ) { 
  10. do_action( 'ninja_forms_edit_field_before_ul', $form_id ); 
  11. do_action( 'ninja_forms_edit_field_ul', $form_id ); 
  12. do_action( 'ninja_forms_edit_field_after_ul', $form_id ); 
  13.  
  14. ?> 
  15. <div style="display:none;"> 
  16. <div id="nf-save-title"> 
  17. <div id="admin-modal-selector"> 
  18. <div id="admin-modal-options"> 
  19. <div> 
  20. <label><input id="nf-form-title" class="widefat" style="width:100%;" type="text" name="admin-modaltitle" placeholder="<?php _e( 'Give your form a title. This is how you\'ll find the form later.', 'ninja-forms' ); ?>"></label> 
  21. </div> 
  22. </div> 
  23. <div id="nf-insert-submit-div"> 
  24. <div class="admin-modal-target"> 
  25. <p class="howto"><?php _e( 'You have not added a submit button to your form.', 'ninja-forms' ); ?></p> 
  26. <label><span> </span><input type="checkbox" id="nf-insert-submit" value="1" checked> Insert Submit Button</label> 
  27. </div> 
  28. </div> 
  29. </div> 
  30. </div> 
  31.  
  32. <div id="nf-save-title-buttons"> 
  33. <div id="nf-admin-modal-cancel"> 
  34. <a class="submitdelete deletion modal-close" href="#">Cancel</a> 
  35. </div> 
  36. <div id="nf-admin-modal-update"> 
  37. <input type="submit" value="Save" class="button button-secondary" id="nf-save-title-submit" disabled> 
  38. </div> 
  39. </div> 
  40. </div> 
  41. <?php