foreach ($rest as $k => $v) {
if ($accessCiviCRM && !empty($this->_viewOptions[$k])) {
$allTabs[] = $v + array(
- 'id' => $k,
- 'url' => CRM_Utils_System::url(
- "civicrm/contact/view/$k",
- "reset=1&cid={$this->_contactId}"
- ),
- 'weight' => $weight,
- 'count' => CRM_Contact_BAO_Contact::getCountComponent($k, $this->_contactId),
- );
+ 'id' => $k,
+ 'url' => CRM_Utils_System::url(
+ "civicrm/contact/view/$k",
+ "reset=1&cid={$this->_contactId}"
+ ),
+ 'weight' => $weight,
+ 'count' => CRM_Contact_BAO_Contact::getCountComponent($k, $this->_contactId),
+ );
$weight += 10;
}
}