Add optional link variable so apps can specify the location of their entry modification time

This commit is contained in:
nathangray 2019-05-17 10:36:04 -06:00
parent db3ad56011
commit 533c9c0351
2 changed files with 9 additions and 0 deletions

View File

@ -424,6 +424,11 @@ class addressbook_hooks
'merge' => true,
'entry' => 'Contact',
'entries' => 'Contacts',
'modification_time' => array(
'key' => 'contact_id',
'column' => 'egw_addressbook.contact_modified',
'type' => 'int'
)
);
return $links;
}

View File

@ -74,6 +74,10 @@ namespace EGroupware\Api;
* 'icon' => 'app/icon', // Optional icon to use instead of app-icon
* 'entry' => 'Contact', // Optional name for single entry of app, eg. "contact" used instead of appname
* 'entries' => 'Contacts', // Optional name for multiple entries of app, eg. "contacts" used instead of appname
* 'modification_time' => array( // Optional location of entry's last modification
* 'column' => {string} table.column // Table & column name
* 'type' => {string} longint // Data type for the column, if it's not a timestamp
* ),
* 'mime' => array( // Optional register mime-types application can open
* 'text/something' => array(
* 'mime_url' => $attr, // either mime_url or mime_data is required for server-side processing!