copyValues($params); $dao->id = CRM_Utils_Array::value('id', $params); CRM_Utils_Hook::post($hook, 'MembershipBlock', $dao->id, $dao); return $dao; } /** * Function to delete membership Blocks * * @param int $id * @static */ static function del($id) { $dao = new CRM_Member_DAO_MembershipType(); $dao->id = $id; $result = FALSE; if ($dao->find(TRUE)) { $dao->delete(); $result = TRUE; } return $result; } }