'CiviEvent', 'translatedName' => ts('CiviEvent'), 'title' => ts('CiviCRM Event Engine'), 'search' => 1, 'showActivitiesInCore' => 1, ); } // docs inherited from interface public function getPermissions($getAllUnconditionally = FALSE) { return array( 'access CiviEvent', 'edit event participants', 'edit all events', 'register for events', 'view event info', 'view event participants', 'delete in CiviEvent', ); } // docs inherited from interface public function getUserDashboardElement() { return array('name' => ts('Events'), 'title' => ts('Your Event(s)'), 'perm' => array('register for events'), 'weight' => 20, ); } // docs inherited from interface public function registerTab() { return array('title' => ts('Events'), 'id' => 'participant', 'url' => 'participant', 'weight' => 40, ); } // docs inherited from interface public function registerAdvancedSearchPane() { return array('title' => ts('Events'), 'weight' => 40, ); } // docs inherited from interface public function getActivityTypes() { $types = array(); $types['Event'] = array('title' => ts('Event'), 'callback' => 'CRM_Event_Page_EventInfo::run()', ); return $types; } // add shortcut to Create New public function creatNewShortcut(&$shortCuts, $newCredit) { if (CRM_Core_Permission::check('access CiviEvent') && CRM_Core_Permission::check('edit event participants') ) { $shortCuts = array_merge($shortCuts, array( array('path' => 'civicrm/participant/add', 'query' => "reset=1&action=add&context=standalone", 'ref' => 'new-participant', 'title' => ts('Event Registration'), ))); if ($newCredit) { $title = ts('Event Registration') . '
  (' . ts('credit card') . ')'; $shortCuts = array_merge($shortCuts, array( array('path' => 'civicrm/participant/add', 'query' => "reset=1&action=add&context=standalone&mode=live", 'ref' => 'new-participant-cc', 'title' => $title, ))); } } } }