diff --git a/CHANGELOG b/CHANGELOG index 91d25c578..daa1febd8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -180,7 +180,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 diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index c8538093c..f91ed2cea 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -612,6 +612,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()); @@ -1497,6 +1501,10 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { ?>