Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
How can I override a function that is already overridden?
Marwan_Khoueiry_(train_-_(deleted))
Hi All,I am developing a module which requires me to modify a function, this function is already overriden by another module, how can I override this function in my code without changing the code of the other module?Regards, Marwan
Find more posts tagged with
Comments
PVA_Livelink_Developer_(pva_pva_-_(deleted))
Follow the previous posts on how to make sure you load after the module(s) you wish to override. The key here is that you want your module to load AFTER any modules who register with the same function signature. Whoever loads last is the one that will have its functions used.Then register your function using the same 'signature' as the one you wish to override. To see what 'signature' is used for registration, look at the __Init function on the function object.Joe LeshPVA, Inc.jlesh@pvaglobal.com