From 8d8ab9a2c29c38b2a1f03fc6c9eb103aa87d81ef Mon Sep 17 00:00:00 2001 From: "deb.monish" <deb.monish@gmail.com> Date: Tue, 28 Mar 2017 17:02:02 +0530 Subject: [PATCH] CRM-20332: modify summaryAction hook to allow user-defined action in third column of action list --- docs/hooks/hook_civicrm_summaryActions.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/hooks/hook_civicrm_summaryActions.md b/docs/hooks/hook_civicrm_summaryActions.md index 3c231e78..56ef6163 100644 --- a/docs/hooks/hook_civicrm_summaryActions.md +++ b/docs/hooks/hook_civicrm_summaryActions.md @@ -51,4 +51,17 @@ Summary Page. 'key' => 'casework', 'href' => '/casework/recording_form ); - } \ No newline at end of file + } + +**Add an item to the third column of action list** + + function mymodulename_civicrm_summaryActions(&$actions, $contactID) + { + $actions['otherActions']['casework'] = array( + 'title' => 'Record casework', + 'weight' => 999, + 'ref' => 'record-casework', + 'key' => 'casework', + 'href' => '/casework/recording_form + ); + } -- GitLab