ninja_forms_save_form_list

The Ninja Forms ninja forms save form list function.

Description

ninja_forms_save_form_list( $data ); 

Parameters (1)

0. $data
The data.

Usage

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

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_save_form_list( $data ) { 
  2. if( isset( $data['bulk_action'] ) AND $data['bulk_action'] != '' ) { 
  3. if( isset( $data['form_ids'] ) AND is_array( $data['form_ids'] ) AND !empty( $data['form_ids'] ) ) { 
  4. foreach( $data['form_ids'] as $form_id ) { 
  5. switch( $data['bulk_action'] ) { 
  6. case 'delete': 
  7. Ninja_Forms()->form( $form_id )->delete(); 
  8. $ninja_forms_admin_update_message = count( $data['form_ids'] ).' '; 
  9. if( count( $data['form_ids'] ) > 1 ) { 
  10. $update_message = __( 'Forms Deleted', 'ninja-forms' ); 
  11. }else{ 
  12. $update_message = __( 'Form Deleted', 'ninja-forms' ); 
  13. break; 
  14. case 'export': 
  15. ninja_forms_export_form( $form_id ); 
  16. break; 
  17. $debug = ! empty ( $_REQUEST['debug'] ) ? true : false; 
  18. Ninja_Forms()->forms()->update_cache( $debug ); 
  19. return $update_message;