function domain_conf_form_submit in Domain Access 7.3
Same name and namespace in other branches
- 5 domain_conf/domain_conf.module \domain_conf_form_submit()
- 6.2 domain_conf/domain_conf.admin.inc \domain_conf_form_submit()
- 7.2 domain_conf/domain_conf.admin.inc \domain_conf_form_submit()
FormsAPI for domain_conf_form().
File
- domain_conf/
domain_conf.admin.inc, line 115 - Domain manager configuration options.
Code
function domain_conf_form_submit($form, &$form_state) {
$new_settings = array();
// Throw away what we don't need.
$ignore = array(
'form_token',
'form_id',
'form_build_id',
'op',
'submit',
'domain_id',
);
foreach ($form_state['values'] as $key => $value) {
if (in_array($key, $ignore)) {
continue;
}
$new_settings[$key] = $value;
}
// Update configuration.
domain_conf_data_set($form_state['values']['domain_id'], $new_settings);
drupal_set_message(t('Domain options saved successfully.'));
// Clear the cache.
cache_clear_all();
}