----------------------------------------
* CRM-13157: isDeleteRelatedMembership() should be declared as static
http://issues.civicrm.org/jira/browse/CRM-13157
* Helper function to check whether to delete the membership or
* not.
*
+ * @static
+ *
*/
- function isDeleteRelatedMembership($relTypeIds, $contactId, $mainRelatedContactId, $relTypeId, $relIds) {
+ static function isDeleteRelatedMembership($relTypeIds, $contactId, $mainRelatedContactId, $relTypeId, $relIds) {
if (in_array($relTypeId, $relTypeIds)) {
return TRUE;
}