mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-01-22 17:19:49 +00:00
pass context for attributes to hooks and [document|folder]ListRow()
This commit is contained in:
parent
119f6430e6
commit
75d6678e2c
|
|
@ -244,11 +244,11 @@ function folderSelected(id, name) {
|
|||
$attrdef = $attrdefarr['attrdef'];
|
||||
$attribute = $folder->getAttribute($attrdef);
|
||||
if($attribute) {
|
||||
$arr = $this->callHook('showFolderAttribute', $folder, $attribute);
|
||||
$arr = $this->callHook('showFolderAttribute', $folder, $attribute, SeedDMS_Core_AttributeDefinitionGroup::show_details);
|
||||
if(is_array($arr)) {
|
||||
echo "<tr>";
|
||||
echo "<td>".$arr[0].":</td>";
|
||||
echo "<td>".$arr[1].":</td>";
|
||||
echo "<td>".$arr[1]."</td>";
|
||||
echo "</tr>";
|
||||
} else {
|
||||
$this->printAttribute($attribute);
|
||||
|
|
@ -261,11 +261,11 @@ function folderSelected(id, name) {
|
|||
$attributes = $folder->getAttributes();
|
||||
if($attributes) {
|
||||
foreach($attributes as $attribute) {
|
||||
$arr = $this->callHook('showFolderAttribute', $folder, $attribute);
|
||||
$arr = $this->callHook('showFolderAttribute', $folder, $attribute, SeedDMS_Core_AttributeDefinitionGroup::show_details);
|
||||
if(is_array($arr)) {
|
||||
echo "<tr>";
|
||||
echo "<td>".$arr[0].":</td>";
|
||||
echo "<td>".$arr[1].":</td>";
|
||||
echo "<td>".$arr[1]."</td>";
|
||||
echo "</tr>";
|
||||
} else {
|
||||
$this->printAttribute($attribute);
|
||||
|
|
@ -323,7 +323,7 @@ function folderSelected(id, name) {
|
|||
if(is_string($txt))
|
||||
echo $txt;
|
||||
else {
|
||||
echo $this->folderListRow($subFolder);
|
||||
echo $this->folderListRow($subFolder, SeedDMS_Core_AttributeDefinitionGroup::show_list);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -333,7 +333,7 @@ function folderSelected(id, name) {
|
|||
if(is_string($txt))
|
||||
echo $txt;
|
||||
else {
|
||||
echo $this->documentListRow($document, $previewer);
|
||||
echo $this->documentListRow($document, $previewer, false, 0, SeedDMS_Core_AttributeDefinitionGroup::show_list);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user