mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +00:00
add hooks folderListPreContent and folderListPostContent
This commit is contained in:
parent
2f8fd33f8e
commit
0c0ac23576
|
@ -400,6 +400,9 @@ $('#loadmore').click(function(e) {
|
||||||
$documents = $folder->getDocuments($orderby);
|
$documents = $folder->getDocuments($orderby);
|
||||||
$documents = SeedDMS_Core_DMS::filterAccess($documents, $user, M_READ);
|
$documents = SeedDMS_Core_DMS::filterAccess($documents, $user, M_READ);
|
||||||
|
|
||||||
|
$txt = $this->callHook('folderListPreContent', $folder, $subFolders, $documents);
|
||||||
|
if(is_string($txt))
|
||||||
|
echo $txt;
|
||||||
$i = 0;
|
$i = 0;
|
||||||
if ((count($subFolders) > 0)||(count($documents) > 0)){
|
if ((count($subFolders) > 0)||(count($documents) > 0)){
|
||||||
$txt = $this->callHook('folderListHeader', $folder, $orderby);
|
$txt = $this->callHook('folderListHeader', $folder, $orderby);
|
||||||
|
@ -461,6 +464,10 @@ $('#loadmore').click(function(e) {
|
||||||
}
|
}
|
||||||
else printMLText("empty_folder_list");
|
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 right column div
|
||||||
echo "</div>\n"; // End of div around left and right column
|
echo "</div>\n"; // End of div around left and right column
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user