From 533c9c0351acf504b90d5c485f04ac51634e64dc Mon Sep 17 00:00:00 2001 From: nathangray Date: Fri, 17 May 2019 10:36:04 -0600 Subject: [PATCH] Add optional link variable so apps can specify the location of their entry modification time --- addressbook/inc/class.addressbook_hooks.inc.php | 5 +++++ api/src/Link.php | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/addressbook/inc/class.addressbook_hooks.inc.php b/addressbook/inc/class.addressbook_hooks.inc.php index 20bf44184f..8402d47f79 100644 --- a/addressbook/inc/class.addressbook_hooks.inc.php +++ b/addressbook/inc/class.addressbook_hooks.inc.php @@ -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; } diff --git a/api/src/Link.php b/api/src/Link.php index 882daa3327..cdf4129b30 100644 --- a/api/src/Link.php +++ b/api/src/Link.php @@ -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!