mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
pass 'add' or 'update' to hook 'addDocumentContentFile'
This commit is contained in:
parent
0198955905
commit
612a6d1473
|
@ -14,6 +14,7 @@
|
||||||
- show only calendar events of logged in user
|
- show only calendar events of logged in user
|
||||||
- show expired documents in calendar
|
- show expired documents in calendar
|
||||||
- call new hook 'cleanUpDocument' after uploading or updating a document
|
- call new hook 'cleanUpDocument' after uploading or updating a document
|
||||||
|
- pass 'add' or 'update' to hook 'addDocumentContentFile'
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
Changes in version 5.1.24
|
Changes in version 5.1.24
|
||||||
|
|
|
@ -399,7 +399,7 @@ console.log(params);
|
||||||
$this->getDropFolderChooserHtml("adddocform", $dropfolderfile)
|
$this->getDropFolderChooserHtml("adddocform", $dropfolderfile)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if($arr = $this->callHook('addDocumentContentFile')) {
|
if($arr = $this->callHook('addDocumentContentFile', 'add')) {
|
||||||
foreach($arr as $ar)
|
foreach($arr as $ar)
|
||||||
if(is_array($ar)) {
|
if(is_array($ar)) {
|
||||||
$this->formField($ar[0], $ar[1], isset($ar[2]) ? $ar[2] : null);
|
$this->formField($ar[0], $ar[1], isset($ar[2]) ? $ar[2] : null);
|
||||||
|
|
|
@ -231,7 +231,7 @@ console.log(element);
|
||||||
$this->getDropFolderChooserHtml("form1")
|
$this->getDropFolderChooserHtml("form1")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if($arr = $this->callHook('addDocumentContentFile')) {
|
if($arr = $this->callHook('addDocumentContentFile', 'update')) {
|
||||||
foreach($arr as $ar)
|
foreach($arr as $ar)
|
||||||
if(is_array($ar)) {
|
if(is_array($ar)) {
|
||||||
$this->formField($ar[0], $ar[1], isset($ar[2]) ? $ar[2] : null);
|
$this->formField($ar[0], $ar[1], isset($ar[2]) ? $ar[2] : null);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user