### Eclipse Workspace Patch 1.0 #P moodle-HEAD Index: lib/formslib.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/formslib.php,v retrieving revision 1.104 diff -u -r1.104 formslib.php --- lib/formslib.php 8 May 2007 15:07:25 -0000 1.104 +++ lib/formslib.php 20 May 2007 11:21:50 -0000 @@ -88,8 +88,8 @@ * the name you gave the class extending moodleform. You should call your class something * like * - * @param string $action the action attribute for the form. If empty defaults to auto detect the - * current url. + * @param mixed $action the action attribute for the form. If empty defaults to auto detect the + * current url. If a moodle_url object then outputs params as hidden variables. * @param array $customdata if your form defintion method needs access to data such as $course * $cm, etc. to construct the form definition then pass it in this array. You can * use globals for somethings. @@ -599,12 +599,19 @@ * @var unknown_type */ var $_formName = ''; + + /** + * String with the html for hidden params passed in as part of a moodle_url object for the action. Output in the form. + * + * @var string + */ + var $_pageparams = ''; /** * Class constructor - same parameters as HTML_QuickForm_DHTMLRulesTableless * @param string $formName Form's name. * @param string $method (optional)Form's method defaults to 'POST' - * @param string $action (optional)Form's action + * @param mixed $action (optional)Form's action - string or moodle_url * @param string $target (optional)Form's target defaults to none * @param mixed $attributes (optional)Extra attributes for