ninja_forms_display_screen_options

The Ninja Forms ninja forms display screen options function.

Description

ninja_forms_display_screen_options( $content ); 

Parameters (1)

0. $content
The content.

Usage

  1. if ( !function_exists( 'ninja_forms_display_screen_options' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/admin/display-screen-options.php'; 
  3.  
  4. // The content. 
  5. $content = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = ninja_forms_display_screen_options($content); 
  9.  

Defined (1)

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

/deprecated/includes/admin/display-screen-options.php  
  1. function ninja_forms_display_screen_options($content) { 
  2. global $ninja_forms_help_screen_tabs, $ninja_forms_screen_options; 
  3. $current_page = esc_html( $_REQUEST['page'] ); 
  4. $current_tab = ninja_forms_get_current_tab(); 
  5.  
  6. if(isset($ninja_forms_screen_options['_universal_']) OR isset($ninja_forms_screen_options[$current_page]['_universal_']) OR isset($ninja_forms_screen_options[$current_page][$current_tab])) { 
  7.  
  8. if(isset($ninja_forms_screen_options['_universal_'])) { 
  9. foreach($ninja_forms_screen_options['_universal_'] as $option) { 
  10. $display_function = $option['display_function']; 
  11. $arguments = func_get_args(); 
  12. array_shift($arguments); // We need to remove the first arg ($function_name) 
  13. call_user_func_array($display_function, $arguments); 
  14.  
  15. if(isset($ninja_forms_screen_options[$current_page]['_universal_'])) { 
  16. foreach($ninja_forms_screen_options[$current_page]['_universal_'] as $option) { 
  17. $display_function = $option['display_function']; 
  18. $arguments = func_get_args(); 
  19. array_shift($arguments); // We need to remove the first arg ($function_name) 
  20. call_user_func_array($display_function, $arguments); 
  21.  
  22. if(isset($ninja_forms_screen_options[$current_page][$current_tab])) { 
  23. foreach($ninja_forms_screen_options[$current_page][$current_tab] as $option) { 
  24. $display_function = $option['display_function']; 
  25. $arguments = func_get_args(); 
  26. array_shift($arguments); // We need to remove the first arg ($function_name) 
  27. call_user_func_array($display_function, $arguments); 
  28.  
  29. ?> 
  30. <br class="clear"> 
  31. <input type="hidden" name="ninja_forms_save_screen_options" value="1"> 
  32. <?php wp_nonce_field('ninja_forms_update_options'); ?> 
  33. <input name="Submit" type="submit" class="button-primary" value="<?php _e( 'Save Options', 'ninja-forms' ); ?>"> 
  34. <?php