ninja_forms_register_tab_form_list

The Ninja Forms ninja forms register tab form list function.

Description

ninja_forms_register_tab_form_list(); 

Usage

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

Defined (1)

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

/deprecated/includes/admin/pages/ninja-forms/tabs/form-list/form-list.php  
  1. function ninja_forms_register_tab_form_list() { 
  2. $new_link = esc_url( add_query_arg( array('form_id' => 'new', 'tab' => 'form_settings') ) ); 
  3. $args = array( 
  4. 'name' => __( 'All Forms', 'ninja-forms' ),  
  5. 'page' => 'ninja-forms',  
  6. 'display_function' => 'ninja_forms_tab_form_list',  
  7. 'save_function' => 'ninja_forms_save_form_list',  
  8. 'show_save' => false,  
  9. 'active_class' => 'form-list-active',  
  10. 'inactive_class' => 'form-list-inactive',  
  11. 'show_tab_links' => false,  
  12. 'show_this_tab_link' => false,  
  13. // 'title' => '<h2>Forms <a href="'.$new_link.'" class="add-new-h2">'.__( 'Add New Form', 'ninja-forms' ).'</a></h2>',  
  14. ); 
  15. ninja_forms_register_tab('form_list', $args);