advmceconf_config_mce

The Advanced TinyMCE Configuration advmceconf config mce function.

Description

advmceconf_config_mce( $config ); 

Parameters (1)

0. $config
The config.

Usage

  1. if ( !function_exists( 'advmceconf_config_mce' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'advanced-tinymce-configuration/adv-mce-config.php'; 
  3.  
  4. // The config. 
  5. $config = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = advmceconf_config_mce($config); 
  9.  

Defined (1)

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

/adv-mce-config.php  
  1. function advmceconf_config_mce( $config ) { 
  2. global $plugin_page; 
  3.  
  4. if ( ! empty( $plugin_page ) && $plugin_page == 'advanced-tinymce-configuration/adv-mce-config.php' ) { 
  5. global $advmceconf_show_defaults; 
  6.  
  7. $advmceconf_show_defaults = $config; 
  8. return $config; 
  9.  
  10. $options = get_option('advmceconf_options'); 
  11.  
  12. if ( empty( $options ) || !is_array( $options ) ) 
  13. return $config; 
  14.  
  15. return array_merge( $config, $options );