'CiviContribute', 'translatedName' => ts('CiviContribute'), 'title' => ts('CiviCRM Contribution Engine'), 'search' => 1, 'showActivitiesInCore' => 1, ); } // docs inherited from interface public function getPermissions() { return array( 'access CiviContribute', 'edit contributions', 'make online contributions', 'delete in CiviContribute', ); } // docs inherited from interface public function getUserDashboardElement() { return array('name' => ts('Contributions'), 'title' => ts('Your Contribution(s)'), 'perm' => array('make online contributions'), 'weight' => 10, ); } // docs inherited from interface public function registerTab() { return array('title' => ts('Contributions'), 'url' => 'contribution', 'weight' => 20, ); } // docs inherited from interface public function registerAdvancedSearchPane() { return array('title' => ts('Contributions'), 'weight' => 20, ); } // docs inherited from interface public function getActivityTypes() { return NULL; } // add shortcut to Create New public function creatNewShortcut(&$shortCuts, $newCredit) { if (CRM_Core_Permission::check('access CiviContribute') && CRM_Core_Permission::check('edit contributions') ) { $shortCuts = array_merge($shortCuts, array( array('path' => 'civicrm/contribute/add', 'query' => "reset=1&action=add&context=standalone", 'ref' => 'new-contribution', 'title' => ts('Contribution'), ))); if ($newCredit) { $title = ts('Contribution') . '
  (' . ts('credit card') . ')'; $shortCuts = array_merge($shortCuts, array( array('path' => 'civicrm/contribute/add', 'query' => "reset=1&action=add&context=standalone&mode=live", 'ref' => 'new-contribution-cc', 'title' => $title, ))); } } } }