Can anybody help me on this?
I have a two modules and a variable is declared on the first. Is it possible that the second module can use the variable declared and defined in the first module?
Can anybody help me on this?
I have a two modules and a variable is declared on the first. Is it possible that the second module can use the variable declared and defined in the first module?
Comments
Comment #1
bdragon commentedYeah, just use
global $_my_module_variablein each place you need to access it.(Note that we have a naming convention for module globals, see http://drupal.org/coding-standards )
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.