mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 21:51:32 +00:00
pass 3rd parameter to formField() if returned by hook
This commit is contained in:
parent
a9a68d9d7b
commit
bbc4943973
|
@ -208,7 +208,7 @@ $(document).ready(function() {
|
||||||
$arr = $this->callHook('editDocumentContentAttribute', $document, $attrdef);
|
$arr = $this->callHook('editDocumentContentAttribute', $document, $attrdef);
|
||||||
if(is_array($arr)) {
|
if(is_array($arr)) {
|
||||||
if($arr)
|
if($arr)
|
||||||
$this->formField($arr[0], $arr[1]);
|
$this->formField($arr[0], $arr[1], isset($arr[2]) ? $arr[2] : null);
|
||||||
} elseif(is_string($arr)) {
|
} elseif(is_string($arr)) {
|
||||||
echo $arr;
|
echo $arr;
|
||||||
} else {
|
} else {
|
||||||
|
@ -219,7 +219,7 @@ $(document).ready(function() {
|
||||||
$arrs = $this->callHook('addDocumentContentAttributes', $folder);
|
$arrs = $this->callHook('addDocumentContentAttributes', $folder);
|
||||||
if(is_array($arrs)) {
|
if(is_array($arrs)) {
|
||||||
foreach($arrs as $arr) {
|
foreach($arrs as $arr) {
|
||||||
$this->formField($arr[0], $arr[1]);
|
$this->formField($arr[0], $arr[1], isset($arr[2]) ? $arr[2] : null);
|
||||||
}
|
}
|
||||||
} elseif(is_string($arrs)) {
|
} elseif(is_string($arrs)) {
|
||||||
echo $arrs;
|
echo $arrs;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user