mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
pass 3rd parameter to formField() if returned by hook
This commit is contained in:
parent
2c013b3429
commit
56ae6a89f7
|
@ -315,7 +315,7 @@ $(document).ready(function() {
|
|||
$arr = $this->callHook('addDocumentAttribute', null, $attrdef);
|
||||
if(is_array($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)) {
|
||||
echo $arr;
|
||||
|
@ -327,7 +327,7 @@ $(document).ready(function() {
|
|||
$arrs = $this->callHook('addDocumentAttributes', null);
|
||||
if(is_array($arrs)) {
|
||||
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)) {
|
||||
echo $arrs;
|
||||
|
@ -385,7 +385,7 @@ $(document).ready(function() {
|
|||
foreach($attrdefs as $attrdef) {
|
||||
$arr = $this->callHook('addDocumentContentAttribute', null, $attrdef);
|
||||
if(is_array($arr)) {
|
||||
$this->formField($arr[0], $arr[1]);
|
||||
$this->formField($arr[0], $arr[1], isset($arr[2]) ? $arr[2] : null);
|
||||
} elseif(is_string($arr)) {
|
||||
echo $arr;
|
||||
} else {
|
||||
|
@ -397,7 +397,7 @@ $(document).ready(function() {
|
|||
$arrs = $this->callHook('addDocumentContentAttributes', $folder);
|
||||
if(is_array($arrs)) {
|
||||
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)) {
|
||||
echo $arrs;
|
||||
|
|
|
@ -119,7 +119,7 @@ $(document).ready( function() {
|
|||
$arr = $this->callHook('addFolderAttribute', null, $attrdef);
|
||||
if(is_array($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)) {
|
||||
echo $arr;
|
||||
|
@ -135,7 +135,7 @@ $(document).ready( function() {
|
|||
$arrs = $this->callHook('addFolderAttributes', null);
|
||||
if(is_array($arrs)) {
|
||||
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)) {
|
||||
echo $arrs;
|
||||
|
|
|
@ -215,7 +215,7 @@ $(document).ready( function() {
|
|||
$arr = $this->callHook('editDocumentAttribute', $document, $attrdef);
|
||||
if(is_array($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)) {
|
||||
echo $arr;
|
||||
|
@ -227,7 +227,7 @@ $(document).ready( function() {
|
|||
$arrs = $this->callHook('addDocumentAttributes', $document);
|
||||
if(is_array($arrs)) {
|
||||
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)) {
|
||||
echo $arrs;
|
||||
|
|
|
@ -116,7 +116,7 @@ $(document).ready(function() {
|
|||
$arr = $this->callHook('editFolderAttribute', $folder, $attrdef);
|
||||
if(is_array($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)) {
|
||||
echo $arr;
|
||||
|
@ -128,7 +128,7 @@ $(document).ready(function() {
|
|||
$arrs = $this->callHook('addFolderAttributes', $folder);
|
||||
if(is_array($arrs)) {
|
||||
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)) {
|
||||
echo $arrs;
|
||||
|
|
|
@ -282,7 +282,7 @@ console.log(element);
|
|||
$arr = $this->callHook('editDocumentContentAttribute', $document, $attrdef);
|
||||
if(is_array($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)) {
|
||||
echo $arr;
|
||||
} else {
|
||||
|
@ -293,7 +293,7 @@ console.log(element);
|
|||
$arrs = $this->callHook('addDocumentContentAttributes', $document);
|
||||
if(is_array($arrs)) {
|
||||
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)) {
|
||||
echo $arrs;
|
||||
|
|
Loading…
Reference in New Issue
Block a user