What is the way drupal define global constants?

I create my own glue module for my site, and I want to define the path to another site as a global constant. Is there any drupal way to do this without setting the define () operator at the top of my module?

+5
source share
2 answers
+7
source

If the glue module is really intended for only one site, and this is not a problem, if it is hard-coded, in any case, hard-coded it.

There are many constants in Drupal core modules: http://api.drupal.org/api/constants/7

, , .

+3

All Articles