mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-10 19:12:42 +00:00
add hooks addDocumentPreForm and addDocumentPostForm
This commit is contained in:
parent
4d10f196e8
commit
b8dfbe4064
|
@ -176,11 +176,15 @@ $(document).ready(function() {
|
||||||
$msg = getMLText("max_upload_size").": ".ini_get( "upload_max_filesize");
|
$msg = getMLText("max_upload_size").": ".ini_get( "upload_max_filesize");
|
||||||
$this->warningMsg($msg);
|
$this->warningMsg($msg);
|
||||||
$this->contentHeading(getMLText("add_document"));
|
$this->contentHeading(getMLText("add_document"));
|
||||||
$this->contentContainerStart();
|
|
||||||
|
|
||||||
// Retrieve a list of all users and groups that have review / approve
|
// Retrieve a list of all users and groups that have review / approve
|
||||||
// privileges.
|
// privileges.
|
||||||
$docAccess = $folder->getReadAccessList($enableadminrevapp, $enableownerrevapp);
|
$docAccess = $folder->getReadAccessList($enableadminrevapp, $enableownerrevapp);
|
||||||
|
|
||||||
|
$txt = $this->callHook('addDocumentPreForm');
|
||||||
|
if(is_string($txt))
|
||||||
|
echo $txt;
|
||||||
|
$this->contentContainerStart();
|
||||||
?>
|
?>
|
||||||
<form class="form-horizontal" action="../op/op.AddDocument.php" enctype="multipart/form-data" method="post" id="form1" name="form1">
|
<form class="form-horizontal" action="../op/op.AddDocument.php" enctype="multipart/form-data" method="post" id="form1" name="form1">
|
||||||
<?php echo createHiddenFieldWithKey('adddocument'); ?>
|
<?php echo createHiddenFieldWithKey('adddocument'); ?>
|
||||||
|
@ -641,6 +645,9 @@ $(document).ready(function() {
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
$this->contentContainerEnd();
|
$this->contentContainerEnd();
|
||||||
|
$txt = $this->callHook('addDocumentPostForm');
|
||||||
|
if(is_string($txt))
|
||||||
|
echo $txt;
|
||||||
$this->contentEnd();
|
$this->contentEnd();
|
||||||
$this->htmlEndPage();
|
$this->htmlEndPage();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user