14 Jan
2005
14 Jan
'05
7:52 p.m.
Sheldon Rampton wrote:
Can someone tell me what the best way is for me to invoke functions from an existing module when writing a new module? For example, "taxonomy_get_vocabularies" from the taxonomy module works fine if I call it directly from within a new module I'm writing, but is it kosher to do this? Should I be using module_invoke instead?
yes, use module_invoke. Your call will not return anything if the target module is not enabled.