Skip to content

Commit

Permalink
Improved description of load and save hooks, including recent additio…
Browse files Browse the repository at this point in the history
…n of redirect flag.
  • Loading branch information
racke committed Apr 20, 2010
1 parent 59c5be6 commit e5290e4
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions guides/wellwell.xml
Expand Up @@ -659,11 +659,12 @@ wellwell=> select * from form_attributes where component = 'content_edit';
a form part. It is not
called if the profile check for the form part has failed.
The return value of the load hook is either a false value or
a hash reference which can contain the following members:
a hash reference where the following members are recognized:
</para>
<itemizedlist>
<listitem><para>
page &mdash; triggers a bounce to that page instead of displaying the form
page &mdash; loads the specified page through the
<literal>$CGI->{mv_nextpage}</literal> mechanism
</para></listitem>
<listitem><para>
attributes &mdash; hash reference providing defaults for form attributes
Expand All @@ -672,8 +673,18 @@ wellwell=> select * from form_attributes where component = 'content_edit';

<para>
<emphasis role='bold'>The save hook</emphasis> is called if the form part has
been successfully submitted (e.g. profile check successful).
been successfully submitted (e.g. profile check successful). The return value of the load hook is either a false value or
a hash reference where the following members are recognized:
</para>
<itemizedlist>
<listitem><para>
page &mdash; loads the specified page through the
<literal>$CGI->{mv_nextpage}</literal> mechanism
</para></listitem>
<listitem><para>
redirect &mdash; redirects to the specified page if true
</para></listitem>
</itemizedlist>
</section>

<section>
Expand Down

0 comments on commit e5290e4

Please sign in to comment.