add hooks folderListPreContent and folderListPostContent

This commit is contained in:
Uwe Steinmann 2018-11-08 16:40:42 +01:00
parent 2f8fd33f8e
commit 0c0ac23576

View File

@ -400,6 +400,9 @@ $('#loadmore').click(function(e) {
$documents = $folder->getDocuments($orderby);
$documents = SeedDMS_Core_DMS::filterAccess($documents, $user, M_READ);
$txt = $this->callHook('folderListPreContent', $folder, $subFolders, $documents);
if(is_string($txt))
echo $txt;
$i = 0;
if ((count($subFolders) > 0)||(count($documents) > 0)){
$txt = $this->callHook('folderListHeader', $folder, $orderby);
@ -461,6 +464,10 @@ $('#loadmore').click(function(e) {
}
else printMLText("empty_folder_list");
$txt = $this->callHook('folderListPostContent', $folder, $subFolders, $documents);
if(is_string($txt))
echo $txt;
echo "</div>\n"; // End of right column div
echo "</div>\n"; // End of div around left and right column