original_string: public function add_all_plugin_settings(MoodleQuickForm $mform) {
          $mform->addElement('header', 'submissiontypes', get_string('submissiontypes', 'assign'));
  
          $submissionpluginsenabled = array();
          $group = $mform->addGroup(array(), 'submissionplugins', get_string('submissiontypes', 'assign'), array(' '), false);
          foreach ($this->submissionplugins as $plugin) {
              $this->add_plugin_settings($plugin, $mform, $submissionpluginsenabled);
          }
          $group->setElements($submissionpluginsenabled);
  
          $mform->addElement('header', 'feedbacktypes', get_string('feedbacktypes', 'assign'));
          $feedbackpluginsenabled = array();
          $group = $mform->addGroup(array(), 'feedbackplugins', get_string('feedbacktypes', 'assign'), array(' '), false);
          foreach ($this->feedbackplugins as $plugin) {
              $this->add_plugin_settings($plugin, $mform, $feedbackpluginsenabled);
          }
          $group->setElements($feedbackpluginsenabled);
          $mform->setExpanded('submissiontypes');
      }
code: public function add_all_plugin_settings(MoodleQuickForm $mform) {
          $mform->addElement('header', 'submissiontypes', get_string('submissiontypes', 'assign'));
  
          $submissionpluginsenabled = array();
          $group = $mform->addGroup(array(), 'submissionplugins', get_string('submissiontypes', 'assign'), array(' '), false);
          foreach ($this->submissionplugins as $plugin) {
              $this->add_plugin_settings($plugin, $mform, $submissionpluginsenabled);
          }
          $group->setElements($submissionpluginsenabled);
  
          $mform->addElement('header', 'feedbacktypes', get_string('feedbacktypes', 'assign'));
          $feedbackpluginsenabled = array();
          $group = $mform->addGroup(array(), 'feedbackplugins', get_string('feedbacktypes', 'assign'), array(' '), false);
          foreach ($this->feedbackplugins as $plugin) {
              $this->add_plugin_settings($plugin, $mform, $feedbackpluginsenabled);
          }
          $group->setElements($feedbackpluginsenabled);
          $mform->setExpanded('submissiontypes');
      }
code_tokens: public function add_all_plugin_settings ( MoodleQuickForm $ mform ) { $ mform -> addElement ( 'header' , 'submissiontypes' , get_string ( 'submissiontypes' , 'assign' ) ) ; $ submissionpluginsenabled = array ( ) ; $ group = $ mform -> addGroup ( array ( ) , 'submissionplugins' , get_string ( 'submissiontypes' , 'assign' ) , array ( ' ' ) , false ) ; foreach ( $ this -> submissionplugins as $ plugin ) { $ this -> add_plugin_settings ( $ plugin , $ mform , $ submissionpluginsenabled ) ; } $ group -> setElements ( $ submissionpluginsenabled ) ; $ mform -> addElement ( 'header' , 'feedbacktypes' , get_string ( 'feedbacktypes' , 'assign' ) ) ; $ feedbackpluginsenabled = array ( ) ; $ group = $ mform -> addGroup ( array ( ) , 'feedbackplugins' , get_string ( 'feedbacktypes' , 'assign' ) , array ( ' ' ) , false ) ; foreach ( $ this -> feedbackplugins as $ plugin ) { $ this -> add_plugin_settings ( $ plugin , $ mform , $ feedbackpluginsenabled ) ; } $ group -> setElements ( $ feedbackpluginsenabled ) ; $ mform -> setExpanded ( 'submissiontypes' ) ; }
docstring: Add settings to edit plugin form.
  
  @param MoodleQuickForm $mform The form to add the configuration settings to.
  This form is modified directly (not returned).
  @return void
docstring_tokens: Add settings to edit plugin form .