'CiviCase', 'translatedName' => ts('CiviCase'), 'title' => ts('CiviCase Engine'), 'search' => 1, 'showActivitiesInCore' => 0, ); } // docs inherited from interface public function getPermissions() { return array( 'delete in CiviCase', 'administer CiviCase', 'access my cases and activities', 'access all cases and activities', 'add cases', ); } // docs inherited from interface public function getUserDashboardElement() { return array(); } // docs inherited from interface public function registerTab() { return array('title' => ts('Cases'), 'url' => 'case', 'weight' => 50, ); } // docs inherited from interface public function registerAdvancedSearchPane() { return array('title' => ts('Cases'), 'weight' => 50, ); } // docs inherited from interface public function getActivityTypes() { return NULL; } // add shortcut to Create New public function creatNewShortcut(&$shortCuts) { if (CRM_Core_Permission::check('access all cases and activities') || CRM_Core_Permission::check('add cases') ) { $atype = CRM_Core_OptionGroup::getValue('activity_type', 'Open Case', 'name' ); if ($atype) { $shortCuts = array_merge($shortCuts, array( array('path' => 'civicrm/case/add', 'query' => "reset=1&action=add&atype=$atype&context=standalone", 'ref' => 'new-case', 'title' => ts('Case'), ))); } } } }