original_string: protected function update_init_params(array &$params, context $context,
              array $options = null) {
  
          $rowsnumber = $this->count_button_rows($params);
          if ($rowsnumber > 1) {
              $this->add_button_before($params, 1, 'pdw_toggle', '');
              $params['pdw_toggle_on'] = 1;
              $params['pdw_toggle_toolbars'] = join(',', range(2, $rowsnumber));
  
              // Add JS file, which uses default name.
              $this->add_js_plugin($params);
          }
      }
code: protected function update_init_params(array &$params, context $context,
              array $options = null) {
  
          $rowsnumber = $this->count_button_rows($params);
          if ($rowsnumber > 1) {
              $this->add_button_before($params, 1, 'pdw_toggle', '');
              $params['pdw_toggle_on'] = 1;
              $params['pdw_toggle_toolbars'] = join(',', range(2, $rowsnumber));
  
              // Add JS file, which uses default name.
              $this->add_js_plugin($params);
          }
      }
code_tokens: protected function update_init_params ( array & $ params , context $ context , array $ options = null ) { $ rowsnumber = $ this -> count_button_rows ( $ params ) ; if ( $ rowsnumber > 1 ) { $ this -> add_button_before ( $ params , 1 , 'pdw_toggle' , '' ) ; $ params [ 'pdw_toggle_on' ] = 1 ; $ params [ 'pdw_toggle_toolbars' ] = join ( ',' , range ( 2 , $ rowsnumber ) ) ; // Add JS file, which uses default name. $ this -> add_js_plugin ( $ params ) ; } }
docstring: Adds pdw toggle button if there are more than one row of buttons in TinyMCE
  
  @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: Adds pdw toggle button if there are more than one row of buttons in TinyMCE