You are here

function domain_conf_variable_save in Domain Access 7.3

Same name and namespace in other branches
  1. 6.2 domain_conf/domain_conf.module \domain_conf_variable_save()
  2. 7.2 domain_conf/domain_conf.module \domain_conf_variable_save()

Store a single variable in {domain_conf}.

@link http://drupal.org/node/367963

Parameters

$domain_id: The unique domain ID that is being edited.

$variable: The name of the variable you wish to set.

$value: The value of the variable to set. You may leave this value blank in order to unset the custom variable.

See also

domain_conf_variable_set()

3 calls to domain_conf_variable_save()
domain_batch_form_submit in ./domain.admin.inc
FormsAPI for saving batch form actions.
domain_conf_variable_set in domain_conf/domain_conf.module
Change the variable setting for a domain. This function is called by external modules that wish to alter Domain Conf settings.
domain_settings_form_submit in domain_settings/domain_settings.module
Submit handler for domain-specific settings.

File

domain_conf/domain_conf.module, line 468
Domain manager configuration options.

Code

function domain_conf_variable_save($domain_id, $variable, $value = NULL) {
  $settings = domain_conf_data_get($domain_id, TRUE);
  $settings[$variable] = $value;
  domain_conf_data_set($domain_id, $settings, FALSE);
}