Saturday, February 25, 2012

Drupal 7: Call function from another module different from the .module file

Should be load the module first before call the function :   
module_load_include($type, $module, $name = NULL);
-----------------------------------------------------------------
Example:
<?php
// Load node.admin.inc from the node module
module_load_include('inc', 'node', 'node.admin');
?>
---------------------------------------------------

2 comments: