From 0a4fcb4c0051fe6d6f5a4656ec6ffe725930eaa7 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 18 Sep 2020 19:24:18 +0200 Subject: [PATCH] add new hooks prePreviousVersionsTab and preLatestVersionTab --- CHANGELOG | 2 +- views/bootstrap/class.ViewDocument.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 92b048cae..3a75dc5bb 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index 8ebbdaa45..516501d67 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -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 { ?>