How to call a function of one module in another module
To call the function of one module in another module:


If the function is not in the .module file, call module_load_include()

//Load node.admin.inc from the node module
module_load_include('inc', 'node', 'node.admin');

Call the function from the other module

function_you_want_to_call();