From: omar abu hussein Date: Mon, 11 Apr 2016 22:05:13 +0000 (+0300) Subject: CRM-18390 - Adding contact summary tab dynamically X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7bcd233bdee6d627bd4ba31ef977c6eee62010a9;p=civicrm-core.git CRM-18390 - Adding contact summary tab dynamically --- 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 @@