Closed (won't fix)
Project:
Ubercart
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
21 Aug 2009 at 16:56 UTC
Updated:
13 Jul 2012 at 17:01 UTC
The following private functions in uc_payment are all used outside the uc_payment module:
_payment_gateway_data()
_payment_gateway_list()
_payment_method_data()
_payment_method_list()
I would also like to use these functions without being concerned they may change or disappear - they should be renamed as regular public functions since they are being used as such.
Comments
Comment #1
longwaveThese have been renamed but are still private in 7.x. This is still something to consider though as they can be useful to other modules - but if this change is going to be made, it must be done before 7.x-3.0!
Comment #2
Island Usurper commentedI don't feel like these functions need to remain private, but it may be worth considering if we can make them easier to use. It may just be that they are private functions, but I have always felt that they were awkward and inefficient. It'll be harder to improve the interface here once they are public functions.
Comment #3
longwaveToo late to do this now.