function hook_domain_settings in Domain Access 7.3
Same name and namespace in other branches
- 6.2 API.php \hook_domain_settings()
- 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
- ./
domain.api.php, line 749 - 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);
}
}
}