function domain_variable_variable_info_alter in Domain Variable 7
Implements hook_variable_info_alter().
Only variables which have the "multidomain" property set to TRUE, can be used as domain specific variables. Here we set this property for a set of default system variables.
See also
_domain_variable_variable_realm_list()
File
- ./
domain_variable.variable.inc, line 17 - Variable hooks for domain_variable.
Code
function domain_variable_variable_info_alter(&$variables, $options) {
$list = array(
'site_name',
'site_slogan',
'site_frontpage',
'site_mail',
'anonymous',
'theme_settings',
'theme_[theme]_settings',
'admin_theme',
'date_default_timezone',
'cache',
'cache_lifetime',
'maintenance_mode',
'maintenance_mode_message',
'language_default',
'menu_main_links_source',
'menu_secondary_links_source',
);
foreach ($list as $name) {
if (isset($variables[$name])) {
$variables[$name]['multidomain'] = TRUE;
}
}
}