original_string: protected function add_default_hidden_elements($mform) {
          global $USER;
  
          // Add some hidden fields.
          $mform->addElement('hidden', 'id');
          $mform->setType('id', PARAM_INT);
          $mform->setDefault('id', 0);
  
          $mform->addElement('hidden', 'userid');
          $mform->setType('userid', PARAM_INT);
          $mform->setDefault('userid', $USER->id);
  
          $mform->addElement('hidden', 'modulename');
          $mform->setType('modulename', PARAM_INT);
          $mform->setDefault('modulename', '');
  
          $mform->addElement('hidden', 'instance');
          $mform->setType('instance', PARAM_INT);
          $mform->setDefault('instance', 0);
  
          $mform->addElement('hidden', 'visible');
          $mform->setType('visible', PARAM_INT);
          $mform->setDefault('visible', 1);
      }
code: protected function add_default_hidden_elements($mform) {
          global $USER;
  
          // Add some hidden fields.
          $mform->addElement('hidden', 'id');
          $mform->setType('id', PARAM_INT);
          $mform->setDefault('id', 0);
  
          $mform->addElement('hidden', 'userid');
          $mform->setType('userid', PARAM_INT);
          $mform->setDefault('userid', $USER->id);
  
          $mform->addElement('hidden', 'modulename');
          $mform->setType('modulename', PARAM_INT);
          $mform->setDefault('modulename', '');
  
          $mform->addElement('hidden', 'instance');
          $mform->setType('instance', PARAM_INT);
          $mform->setDefault('instance', 0);
  
          $mform->addElement('hidden', 'visible');
          $mform->setType('visible', PARAM_INT);
          $mform->setDefault('visible', 1);
      }
code_tokens: protected function add_default_hidden_elements ( $ mform ) { global $ USER ; // Add some hidden fields. $ mform -> addElement ( 'hidden' , 'id' ) ; $ mform -> setType ( 'id' , PARAM_INT ) ; $ mform -> setDefault ( 'id' , 0 ) ; $ mform -> addElement ( 'hidden' , 'userid' ) ; $ mform -> setType ( 'userid' , PARAM_INT ) ; $ mform -> setDefault ( 'userid' , $ USER -> id ) ; $ mform -> addElement ( 'hidden' , 'modulename' ) ; $ mform -> setType ( 'modulename' , PARAM_INT ) ; $ mform -> setDefault ( 'modulename' , '' ) ; $ mform -> addElement ( 'hidden' , 'instance' ) ; $ mform -> setType ( 'instance' , PARAM_INT ) ; $ mform -> setDefault ( 'instance' , 0 ) ; $ mform -> addElement ( 'hidden' , 'visible' ) ; $ mform -> setType ( 'visible' , PARAM_INT ) ; $ mform -> setDefault ( 'visible' , 1 ) ; }
docstring: Add the list of hidden elements that should appear in this form each
  time. These elements will never be visible to the user.
  
  @param MoodleQuickForm $mform
docstring_tokens: Add the list of hidden elements that should appear in this form each time . These elements will never be visible to the user .