domain_conf_variable_set

Versions
domain
domain_conf_variable_set($domain_id, $variable, $value = NULL)

Change the variable setting for a domain. This function is called by external modules that wish to alter Domain Conf settings.

Note that this function saves the value to the database and changes the active $conf array.

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

See also

domain_conf_variable_save()

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.

Code

domain_conf/domain_conf.module, line 604

<?php
function domain_conf_variable_set($domain_id, $variable, $value = NULL) {
  global $conf, $_domain;
  domain_conf_variable_save($domain_id, $variable, $value = NULL);
  // Clear the cache.
  cache_clear_all('variables', 'cache');
  // If we are on the active domain, set the active variable.
  if ($domain_id == $_domain['domain_id']) {
    $conf[$variable] = $value;
  }
}
?>

Contact

  • agentrickard [at] gmail [dot] com

Donations

My Amazon.com Wish List