Is it possible for me to call one module's function from another module? If so, how would I go about that? If that is not possible, can I set a global variable in one module and then reference that global variable in a different module?

Thanks,
Shane

Comments

nevets’s picture

Sure you can. The module making the call should depend on the module with the function being called. Note that you can only safely call functions found in the *.module file as other module files not be loaded (more of an issue starting with Drupal 6)

haroon373’s picture

Thanks nevets for the giving the way.

I a newbi in drupal module development. And I am creating a module in which i want to list all taxonomy terms with check boxes.

Kindly just give me the example code so i can start doing this

thanks in advance

Cheers,

adam_b’s picture

You don't need to write a new module for this - use http://drupal.org/project/views and http://drupal.org/project/views_bulk_operations