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'));
<div class="crm-block crm-content-block crm-contact-page crm-inline-edit-container">
<div id="mainTabContainer">
<ul class="crm-contact-tabs-list">
- <li id="tab_summary" class="crm-tab-button ui-corner-all">
- <a href="#contact-summary" title="{ts}Summary{/ts}">
- <span> </span> {ts}Summary{/ts}
- <em></em>
- </a>
- </li>
{foreach from=$allTabs key=tabName item=tabValue}
<li id="tab_{$tabValue.id}" class="crm-tab-button ui-corner-all crm-count-{$tabValue.count}{if isset($tabValue.class)} {$tabValue.class}{/if}">
<a href="{$tabValue.url}" title="{$tabValue.title}">