mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
add new hooks prePreviousVersionsTab and preLatestVersionTab
This commit is contained in:
parent
0649815e56
commit
0a4fcb4c00
|
@ -8,7 +8,7 @@
|
|||
- removing a document version will not remove attachments of the document anymore
|
||||
- make document details page like like view document page
|
||||
- fix selection of documents/folders
|
||||
- new hooks SeedDMS_View_Document::[startRightColumn|extraVersionsViews]
|
||||
- new hooks SeedDMS_View_Document::[startRightColumn|extraVersionsViews|prePreviousVersionsTab|preLatestVersionTab]
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Changes in version 5.1.19
|
||||
|
|
|
@ -564,6 +564,10 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
|||
exit;
|
||||
}
|
||||
|
||||
$txt = $this->callHook('preLatestVersionTab', $latestContent);
|
||||
if(is_string($txt))
|
||||
echo $txt;
|
||||
|
||||
// verify if file exists
|
||||
$file_exists=file_exists($dms->contentDir . $latestContent->getPath());
|
||||
|
||||
|
@ -1188,6 +1192,10 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
|||
?>
|
||||
<div class="tab-pane <?php if($currenttab == 'previous') echo 'active'; ?>" id="previous">
|
||||
<?php
|
||||
$txt = $this->callHook('prePreviousVersionsTab', $versions);
|
||||
if(is_string($txt))
|
||||
echo $txt;
|
||||
|
||||
$this->contentContainerStart();
|
||||
|
||||
print "<table class=\"table\">";
|
||||
|
|
Loading…
Reference in New Issue
Block a user