original_string: public static function input_hidden_params(moodle_url $url, array $exclude = null) {
          $exclude = (array)$exclude;
          $params = $url->params();
          foreach ($exclude as $key) {
              unset($params[$key]);
          }
  
          $output = '';
          foreach ($params as $key => $value) {
              $attributes = array('type'=>'hidden', 'name'=>$key, 'value'=>$value);
              $output .= self::empty_tag('input', $attributes)."\n";
          }
          return $output;
      }
code: public static function input_hidden_params(moodle_url $url, array $exclude = null) {
          $exclude = (array)$exclude;
          $params = $url->params();
          foreach ($exclude as $key) {
              unset($params[$key]);
          }
  
          $output = '';
          foreach ($params as $key => $value) {
              $attributes = array('type'=>'hidden', 'name'=>$key, 'value'=>$value);
              $output .= self::empty_tag('input', $attributes)."\n";
          }
          return $output;
      }
code_tokens: public static function input_hidden_params ( moodle_url $ url , array $ exclude = null ) { $ exclude = ( array ) $ exclude ; $ params = $ url -> params ( ) ; foreach ( $ exclude as $ key ) { unset ( $ params [ $ key ] ) ; } $ output = '' ; foreach ( $ params as $ key => $ value ) { $ attributes = array ( 'type' => 'hidden' , 'name' => $ key , 'value' => $ value ) ; $ output .= self :: empty_tag ( 'input' , $ attributes ) . "\n" ; } return $ output ; }
docstring: Returns hidden input fields created from url parameters.
  
  @param moodle_url $url
  @param array $exclude list of excluded parameters
  @return string HTML fragment
docstring_tokens: Returns hidden input fields created from url parameters .