original_string: protected function add_plugin_submission_elements($submission,
                                                      MoodleQuickForm $mform,
                                                      stdClass $data,
                                                      $userid) {
          foreach ($this->submissionplugins as $plugin) {
              if ($plugin->is_enabled() && $plugin->is_visible() && $plugin->allow_submissions()) {
                  $plugin->get_form_elements_for_user($submission, $mform, $data, $userid);
              }
          }
      }
code: protected function add_plugin_submission_elements($submission,
                                                      MoodleQuickForm $mform,
                                                      stdClass $data,
                                                      $userid) {
          foreach ($this->submissionplugins as $plugin) {
              if ($plugin->is_enabled() && $plugin->is_visible() && $plugin->allow_submissions()) {
                  $plugin->get_form_elements_for_user($submission, $mform, $data, $userid);
              }
          }
      }
code_tokens: protected function add_plugin_submission_elements ( $ submission , MoodleQuickForm $ mform , stdClass $ data , $ userid ) { foreach ( $ this -> submissionplugins as $ plugin ) { if ( $ plugin -> is_enabled ( ) && $ plugin -> is_visible ( ) && $ plugin -> allow_submissions ( ) ) { $ plugin -> get_form_elements_for_user ( $ submission , $ mform , $ data , $ userid ) ; } } }
docstring: Add elements in submission plugin form.
  
  @param mixed $submission stdClass|null
  @param MoodleQuickForm $mform
  @param stdClass $data
  @param int $userid The current userid (same as $USER->id)
  @return void
docstring_tokens: Add elements in submission plugin form .