mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +00:00
add new hook addFolderAttributes, editFolderAttribute may return a string
This commit is contained in:
parent
dfa2d03cf9
commit
070af52849
|
@ -117,11 +117,21 @@ $(document).ready(function() {
|
||||||
if($arr) {
|
if($arr) {
|
||||||
$this->formField($arr[0], $arr[1]);
|
$this->formField($arr[0], $arr[1]);
|
||||||
}
|
}
|
||||||
|
} elseif(is_string($arr) {
|
||||||
|
echo $arr;
|
||||||
} else {
|
} else {
|
||||||
$this->formField(htmlspecialchars($attrdef->getName()), $this->getAttributeEditField($attrdef, $folder->getAttribute($attrdef)));
|
$this->formField(htmlspecialchars($attrdef->getName()), $this->getAttributeEditField($attrdef, $folder->getAttribute($attrdef)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$arrs = $this->callHook('addFolderAttributes', $folder);
|
||||||
|
if(is_array($arrs)) {
|
||||||
|
foreach($arrs as $arr) {
|
||||||
|
$this->formField($arr[0], $arr[1]);
|
||||||
|
}
|
||||||
|
} elseif(is_string($arr) {
|
||||||
|
echo $arr;
|
||||||
|
}
|
||||||
$this->formSubmit("<i class=\"icon-save\"></i> ".getMLText('save'));
|
$this->formSubmit("<i class=\"icon-save\"></i> ".getMLText('save'));
|
||||||
?>
|
?>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user