You are here

function hook_domain_settings in Domain Access 6.2

Same name and namespace in other branches
  1. 7.3 domain.api.php \hook_domain_settings()
  2. 7.2 domain.api.php \hook_domain_settings()

Notify other modules that Domain Settings has saved a variable set.

Parameters

$domain_id: The domain the variable is being saved for. This is not always the current domain.

$values: The form values being submitted, an array in the format $name => $value. @return No return required.

1 invocation of hook_domain_settings()
domain_settings_form_submit in domain_settings/domain_settings.module
Submit handler for domain-specific settings.

File

./API.php, line 786
API documentation file.

Code

function hook_domain_settings($domain_id, $values) {

  // Sync domain 2 with the primary domain in all cases.
  if ($domain_id == 2) {
    foreach ($values as $name => $value) {
      variable_set($name, $value);
    }
  }
}