]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - doc/plugins/write.mdwn
make checkcontent compatible with hooks that need the full content
[git.ikiwiki.info.git] / doc / plugins / write.mdwn
index ef14f18dbb13fe81b0f85d1fcb2e85fd6fa63db1..7ba01ae53f1d796bf31677183492a82d485849a0 100644 (file)
@@ -368,8 +368,9 @@ the content the user has entered is a comment, it may also be passed some
 additional parameters: `author`, `url`, and `subject`. The `subject`
 parameter may also be filled with the user's comment about the change.
 
-Note: When the user edits an existing wiki page, the passed `content` will
-include only the lines that they added to the page, or modified.
+Note: When the user edits an existing wiki page, this hook is also
+passed a `diff` named parameter, which will include only the lines
+that they added to the page, or modified.
 
 The hook should return `undef` on success. If the content is disallowed, it
 should return a message stating what the problem is, or a function