summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2007-12-12 03:01:15 -0500
committerJoey Hess <joey@kitenet.net>2007-12-12 03:15:30 -0500
commit4745391360cf0843e376676479fee306d0a8312d (patch)
tree55edb11f77b680c05f482151b44f4b6a0f2f1f56 /doc
parentc46b17983dc5549172dabb461b72a4ed11f110ae (diff)
* Change formbuilder hook to not be responsible for displaying a form,
so that more than one plugin can use this hook. I believe this is a safe change, since only passwordauth uses this hook. (If some other plugin already used it, it would have broken passwordauth!)
Diffstat (limited to 'doc')
-rw-r--r--doc/plugins/write.mdwn6
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn
index 1cb26a076..b7c487ee2 100644
--- a/doc/plugins/write.mdwn
+++ b/doc/plugins/write.mdwn
@@ -279,10 +279,8 @@ it's a form that it needs to modify, will call various methods to
add/remove/change fields, tweak the validation code for the fields, etc. It
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.
+Just before a form is displayed to the user, the `formbuilder` hook is
+called. It can be used to validate the form, but should not display it.
### savestate