mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 21:51:32 +00:00
add hooks (pre|post)DocumentInfos
This commit is contained in:
parent
0eaf06a75f
commit
421bf3e81a
|
@ -184,6 +184,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
<?php
|
<?php
|
||||||
$this->contentHeading(getMLText("document_infos"));
|
$this->contentHeading(getMLText("document_infos"));
|
||||||
$this->contentContainerStart();
|
$this->contentContainerStart();
|
||||||
|
$txt = $this->callHook('preDocumentInfos', $document);
|
||||||
|
if(is_string($txt))
|
||||||
|
echo $txt;
|
||||||
$txt = $this->callHook('documentInfos', $document);
|
$txt = $this->callHook('documentInfos', $document);
|
||||||
if(is_string($txt))
|
if(is_string($txt))
|
||||||
echo $txt;
|
echo $txt;
|
||||||
|
@ -302,6 +305,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
</table>
|
</table>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
$txt = $this->callHook('postDocumentInfos', $document);
|
||||||
|
if(is_string($txt))
|
||||||
|
echo $txt;
|
||||||
$this->contentContainerEnd();
|
$this->contentContainerEnd();
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user