mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
add more hooks (still incomplete)
This commit is contained in:
parent
0205e8a08e
commit
b8447b7d39
|
@ -59,6 +59,22 @@ AddDocument::preIndexDocument
|
||||||
are the document and the indexed document. Returning false will prevent
|
are the document and the indexed document. Returning false will prevent
|
||||||
the document from being indexed.
|
the document from being indexed.
|
||||||
|
|
||||||
|
EditDocument::editDocumentAttribute
|
||||||
|
Called for each custom document attribute
|
||||||
|
|
||||||
|
This hook will be called for each custom attribute to ouput the form entry.
|
||||||
|
The parameters passed are the document and the attribute definition.
|
||||||
|
Returning an empty array will prevent the attribute from being show.
|
||||||
|
Returning an array with two elements will pass those element to the formField
|
||||||
|
method. A returned string will be output as is.
|
||||||
|
|
||||||
|
EditDocument::addDocumentAttributes
|
||||||
|
Called after all custom document attributes has been output
|
||||||
|
|
||||||
|
This hook will be called right after the document attributes have been shown.
|
||||||
|
The return value is either an array with two elements or a string.
|
||||||
|
The string will be output as is, the array will be passed to the method formField.
|
||||||
|
|
||||||
UpdateDocument::preUpdateDocument
|
UpdateDocument::preUpdateDocument
|
||||||
Called before a new document will be updated
|
Called before a new document will be updated
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user