From c708a038cf06013e5893a471d9351503eed4bf7c Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 15 Mar 2017 18:02:25 +0100 Subject: [PATCH] add hook extraVersionActions --- views/bootstrap/class.ViewDocument.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index 2919aadcd..5b773de37 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -618,7 +618,12 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { print "
  • getVersion()."\">".getMLText("edit_attributes")."
  • "; } - //print "
  • ".getMLText("versioning_info")."
  • "; + $items = $this->callHook('extraVersionActions', $version); + if($items) { + foreach($items as $item) { + echo "
  • ".$item."
  • "; + } + } print ""; echo "";