original_string: public static function all_update_init_params(array &$params,
              context $context, array $options = null) {
          global $CFG;
  
          // Get list of plugin directories.
          $plugins = core_component::get_plugin_list('tinymce');
  
          // Get list of disabled subplugins.
          $disabled = array();
          if ($params['moodle_config']->disabledsubplugins) {
              foreach (explode(',', $params['moodle_config']->disabledsubplugins) as $sp) {
                  $sp = trim($sp);
                  if ($sp !== '') {
                      $disabled[$sp] = $sp;
                  }
              }
          }
  
          // Construct all the plugins.
          $pluginobjects = array();
          foreach ($plugins as $plugin => $dir) {
              if (isset($disabled[$plugin])) {
                  continue;
              }
              require_once($dir . '/lib.php');
              $classname = 'tinymce_' . $plugin;
              $pluginobjects[] = new $classname($plugin);
          }
  
          // Sort plugins by sort order and name.
          usort($pluginobjects, array('editor_tinymce_plugin', 'compare_plugins'));
  
          // Run the function for each plugin.
          foreach ($pluginobjects as $obj) {
              $obj->update_init_params($params, $context, $options);
          }
      }
code: public static function all_update_init_params(array &$params,
              context $context, array $options = null) {
          global $CFG;
  
          // Get list of plugin directories.
          $plugins = core_component::get_plugin_list('tinymce');
  
          // Get list of disabled subplugins.
          $disabled = array();
          if ($params['moodle_config']->disabledsubplugins) {
              foreach (explode(',', $params['moodle_config']->disabledsubplugins) as $sp) {
                  $sp = trim($sp);
                  if ($sp !== '') {
                      $disabled[$sp] = $sp;
                  }
              }
          }
  
          // Construct all the plugins.
          $pluginobjects = array();
          foreach ($plugins as $plugin => $dir) {
              if (isset($disabled[$plugin])) {
                  continue;
              }
              require_once($dir . '/lib.php');
              $classname = 'tinymce_' . $plugin;
              $pluginobjects[] = new $classname($plugin);
          }
  
          // Sort plugins by sort order and name.
          usort($pluginobjects, array('editor_tinymce_plugin', 'compare_plugins'));
  
          // Run the function for each plugin.
          foreach ($pluginobjects as $obj) {
              $obj->update_init_params($params, $context, $options);
          }
      }
code_tokens: public static function all_update_init_params ( array & $ params , context $ context , array $ options = null ) { global $ CFG ; // Get list of plugin directories. $ plugins = core_component :: get_plugin_list ( 'tinymce' ) ; // Get list of disabled subplugins. $ disabled = array ( ) ; if ( $ params [ 'moodle_config' ] -> disabledsubplugins ) { foreach ( explode ( ',' , $ params [ 'moodle_config' ] -> disabledsubplugins ) as $ sp ) { $ sp = trim ( $ sp ) ; if ( $ sp !== '' ) { $ disabled [ $ sp ] = $ sp ; } } } // Construct all the plugins. $ pluginobjects = array ( ) ; foreach ( $ plugins as $ plugin => $ dir ) { if ( isset ( $ disabled [ $ plugin ] ) ) { continue ; } require_once ( $ dir . '/lib.php' ) ; $ classname = 'tinymce_' . $ plugin ; $ pluginobjects [ ] = new $ classname ( $ plugin ) ; } // Sort plugins by sort order and name. usort ( $ pluginobjects , array ( 'editor_tinymce_plugin' , 'compare_plugins' ) ) ; // Run the function for each plugin. foreach ( $ pluginobjects as $ obj ) { $ obj -> update_init_params ( $ params , $ context , $ options ) ; } }
docstring: Calls all available plugins to adjust the TinyMCE init parameters.
  
  @param array $params TinyMCE init parameters array
  @param context $context Context where editor is being shown
  @param array $options Options for this editor
docstring_tokens: Calls all available plugins to adjust the TinyMCE init parameters .