ninja_forms_edit_field_output_ul

The Ninja Forms ninja forms edit field output ul function.

Description

ninja_forms_edit_field_output_ul( $form_id ); 

Parameters (1)

0. $form_id
The form id.

Usage

  1. if ( !function_exists( 'ninja_forms_edit_field_output_ul' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/admin/pages/ninja-forms/tabs/field-settings/edit-field-ul.php'; 
  3.  
  4. // The form id. 
  5. $form_id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = ninja_forms_edit_field_output_ul($form_id); 
  9.  

Defined (1)

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

/deprecated/includes/admin/pages/ninja-forms/tabs/field-settings/edit-field-ul.php  
  1. function ninja_forms_edit_field_output_ul( $form_id ) { 
  2. $fields = ninja_forms_get_fields_by_form_id( $form_id ); 
  3. ?> 
  4. <div id="ninja-forms-viewport"> 
  5. <input class="button-primary menu-save nf-save-admin-fields" id="ninja_forms_save_data_top" type="button" value="<?php _e('Save', 'ninja-forms'); ?>" /> 
  6. <a href="#" class="button-secondary nf-save-spinner" style="display:none;" disabled><span class="spinner nf-save-spinner" style="float:left;"></span></a> 
  7. <ul class="menu ninja-forms-field-list" id="ninja_forms_field_list"> 
  8. <?php 
  9. if( is_array( $fields ) AND !empty( $fields ) ) { 
  10. foreach( $fields as $field ) { 
  11. ninja_forms_edit_field( $field['id'] ); 
  12. ?> 
  13. </ul> 
  14.  
  15. <input class="button-primary menu-save nf-save-admin-fields" id="ninja_forms_save_data_bot" type="button" value="<?php _e('Save', 'ninja-forms'); ?>" /> 
  16. <a href="#" class="button-secondary nf-save-spinner" style="display:none;" disabled><span class="spinner nf-save-spinner" style="float:left;"></span></a> 
  17. </div> 
  18. <?php 
  19.