Shared Values for multiple modules in Drupal 7 -


i'm using drupal 7 build website. annoys me seems there're fields shares same value across multiple modules setting. example, e-mail address site e-mail, simplenews sender , etc.

i'm wondering whether there's way solve situation in programming - using variable, don't need change values each each, keep them same.

thanks!

probably, looking variable_set & variable_get drupal apis.

example: set value this:

variable_set('email_id', 'abc@xyz.com'); 

then can retrieve in module following:

$email_id = variable_get('email_id'); 

Comments