From 7bcd233bdee6d627bd4ba31ef977c6eee62010a9 Mon Sep 17 00:00:00 2001 From: omar abu hussein Date: Tue, 12 Apr 2016 01:05:13 +0300 Subject: [PATCH] CRM-18390 - Adding contact summary tab dynamically --- CRM/Contact/Page/View/Summary.php | 7 +++++++ templates/CRM/Contact/Page/View/Summary.tpl | 6 ------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CRM/Contact/Page/View/Summary.php b/CRM/Contact/Page/View/Summary.php index 11eb55571b..13f46994c1 100644 --- a/CRM/Contact/Page/View/Summary.php +++ b/CRM/Contact/Page/View/Summary.php @@ -392,6 +392,13 @@ class CRM_Contact_Page_View_Summary extends CRM_Contact_Page_View { CRM_Utils_Hook::tabs($allTabs, $this->_contactId); CRM_Utils_Hook::tabset('civicrm/contact/view', $allTabs, $context); + $allTabs[] = array( + 'id' => 'summary', + 'url' => '#contact-summary', + 'title' => ts('Summary'), + 'weight' => 0, + ); + // now sort the tabs based on weight usort($allTabs, array('CRM_Utils_Sort', 'cmpFunc')); diff --git a/templates/CRM/Contact/Page/View/Summary.tpl b/templates/CRM/Contact/Page/View/Summary.tpl index d81a00e0d0..a49c63c5c1 100644 --- a/templates/CRM/Contact/Page/View/Summary.tpl +++ b/templates/CRM/Contact/Page/View/Summary.tpl @@ -123,12 +123,6 @@