mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
call hook 'rawcontent'
This commit is contained in:
parent
d7af33f579
commit
10b62bc7fb
|
@ -31,12 +31,18 @@ class SeedDMS_Controller_TransmittalDownload extends SeedDMS_Controller_Common {
|
|||
if($items) {
|
||||
include("../inc/inc.ClassDownloadMgr.php");
|
||||
$downmgr = new SeedDMS_Download_Mgr();
|
||||
if($extraheader = $this->callHook('extraDownloadHeader'))
|
||||
$downmgr->addHeader($extraheader);
|
||||
|
||||
foreach($items as $item) {
|
||||
$content = $item->getContent();
|
||||
$document = $content->getDocument();
|
||||
if ($document->getAccessMode($user) >= M_READ) {
|
||||
$downmgr->addItem($content);
|
||||
$extracols = $this->callHook('extraDownloadColumns', $document);
|
||||
if($rawcontent = $this->callHook('rawcontent', $content)) {
|
||||
$downmgr->addItem($content, $extracols, $rawcontent);
|
||||
} else
|
||||
$downmgr->addItem($content, $extracols);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user