original_string: public static function submit_accept_on_behalf($jsonformdata) {
          // We always must pass webservice params through validate_parameters.
          $params = self::validate_parameters(self::submit_accept_on_behalf_parameters(),
              ['jsonformdata' => $jsonformdata]);
  
          self::validate_context(context_system::instance());
  
          $serialiseddata = json_decode($params['jsonformdata']);
  
          $data = array();
          parse_str($serialiseddata, $data);
  
          // The last param is the ajax submitted data.
          $mform = new accept_policy(null, $data, 'post', '', null, true, $data);
  
          // Do the action.
          $mform->process();
  
          return true;
      }
code: public static function submit_accept_on_behalf($jsonformdata) {
          // We always must pass webservice params through validate_parameters.
          $params = self::validate_parameters(self::submit_accept_on_behalf_parameters(),
              ['jsonformdata' => $jsonformdata]);
  
          self::validate_context(context_system::instance());
  
          $serialiseddata = json_decode($params['jsonformdata']);
  
          $data = array();
          parse_str($serialiseddata, $data);
  
          // The last param is the ajax submitted data.
          $mform = new accept_policy(null, $data, 'post', '', null, true, $data);
  
          // Do the action.
          $mform->process();
  
          return true;
      }
code_tokens: public static function submit_accept_on_behalf ( $ jsonformdata ) { // We always must pass webservice params through validate_parameters. $ params = self :: validate_parameters ( self :: submit_accept_on_behalf_parameters ( ) , [ 'jsonformdata' => $ jsonformdata ] ) ; self :: validate_context ( context_system :: instance ( ) ) ; $ serialiseddata = json_decode ( $ params [ 'jsonformdata' ] ) ; $ data = array ( ) ; parse_str ( $ serialiseddata , $ data ) ; // The last param is the ajax submitted data. $ mform = new accept_policy ( null , $ data , 'post' , '' , null , true , $ data ) ; // Do the action. $ mform -> process ( ) ; return true ; }
docstring: Submit the create group form.
  
  @param string $jsonformdata The data from the form, encoded as a json array.
  @return int new group id.
docstring_tokens: Submit the create group form .