How can I create a variable with different values for each domain using Domain Access? I have a numeric value that is unique to each domain (using Domain Access) on my site. I'd like to use the same variable name so I can use the same theme and display this value on all domains. Is this possible?

I'm currently defining the variable in a custom module, but I'm only storing 1 value. Can I alter the code in the custom module so that each domain can have it's own unique value for this variable?

UPDATE:

Adding the following when defining the variable in my custom module worked :D

'multidomain' =&gt; true,


I can edit the variable through admin/config/system/variable/edit/ and I get unique values across my domains stored in the variable_store table. The problem I now have is that I want to create an admin form for getting/setting a bunch of domain variables and the usual variable_get/variable_set don't work...any thoughts?
You must enable "domain configuration" submodule (domain_conf)
This will provide you the save per domain option:

function your_module_form($form, &amp;$form_state) {

  $form['variable'] = array(
    '#type' =&gt; 'value',
    '#value' =&gt; time(),
  );

  return system_settings_form($form);

}


getting the variable manually:

function domain_conf_variable_get($domain_id, $variable = '', $all = FALSE, $reset = FALSE)


seeting the variable manually:

function domain_conf_variable_set($domain_id, $variable, $value = NULL) 


There is a module which aims to be a replacement variable handling module for Domain Access,If you need setting different variable values for each domain and for each language at the same time you need domain variable module https://drupal.org/project/domain_variable