'CiviMember', 'translatedName' => ts('CiviMember'), 'title' => 'CiviCRM Membership Engine', 'search' => 1, 'showActivitiesInCore' => 1, ); } // docs inherited from interface public function getPermissions($getAllUnconditionally = FALSE) { return array( 'access CiviMember', 'edit memberships', 'delete in CiviMember', ); } // docs inherited from interface public function getUserDashboardElement() { return array('name' => ts('Memberships'), 'title' => ts('Your Membership(s)'), // this is CiviContribute specific permission, since // there is no permission that could be checked for // CiviMember 'perm' => array('make online contributions'), 'weight' => 30, ); } // docs inherited from interface public function registerTab() { return array('title' => ts('Memberships'), 'url' => 'membership', 'weight' => 30, ); } // docs inherited from interface public function registerAdvancedSearchPane() { return array('title' => ts('Memberships'), 'weight' => 30, ); } // 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 CiviMember') && CRM_Core_Permission::check('edit memberships') ) { $shortCuts = array_merge($shortCuts, array( array('path' => 'civicrm/member/add', 'query' => "reset=1&action=add&context=standalone", 'ref' => 'new-membership', 'title' => ts('Membership'), ))); if ($newCredit) { $title = ts('Membership') . '
  (' . ts('credit card') . ')'; $shortCuts = array_merge($shortCuts, array( array('path' => 'civicrm/member/add', 'query' => "reset=1&action=add&context=standalone&mode=live", 'ref' => 'new-membership-cc', 'title' => $title, ))); } } } }