X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/75a11e6a8d92f7ff221eb4b1270526d57ef537bc..ad0e48bc92b9b44a3f29597a14771097685c0531:/doc/plugins/write.mdwn diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index 3030d6558..bbe047d33 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -258,8 +258,9 @@ If the hook has no opinion about whether the edit can proceed, return These hooks allow tapping into the parts of ikiwiki that use [[cpan CGI::FormBuilder]] to generate web forms. These hooks are passed named -parameters: `cgi`, `session`, and `form`. These are, respectively, the -`CGI` object, the user's `CGI::Session`, and a `CGI::FormBuilder`. +parameters: `cgi`, `session`, `form`, and `buttons`. These are, respectively, +the `CGI` object, the user's `CGI::Session`, a `CGI::FormBuilder`, and a +reference to an array of names of buttons to go on the form. Each time a form is set up, the `formbuilder_setup` hook is called. Typically the `formbuilder_setup` hook will check the form's title, and if @@ -270,8 +271,7 @@ will not validate or display the form. Form validation and display can be overridden by the formbuilder hook. By default, ikiwiki will do a basic validation and display of the form, but if this hook is registered, it will stop that and let the hook take -over. This hook is passed an additional named parameter: `buttons` is an -array of the submit buttons for the form. +over. ### savestate