function domain_conf_reset_form in Domain Access 5
Same name and namespace in other branches
- 6.2 domain_conf/domain_conf.admin.inc \domain_conf_reset_form()
- 7.3 domain_conf/domain_conf.admin.inc \domain_conf_reset_form()
- 7.2 domain_conf/domain_conf.admin.inc \domain_conf_reset_form()
FormsAPI for resetting a domain configuration.
Parameters
$domain: The $domain object for the selected domain.
Return value
Themed HTML form.
1 string reference to 'domain_conf_reset_form'
- domain_conf_reset in domain_conf/
domain_conf.module - Resets configuration settings by removing the domain row from {domain_conf}.
File
- domain_conf/
domain_conf.module, line 331 - Domain manager configuration options.
Code
function domain_conf_reset_form($domain) {
$extra['domain_id'] = array(
'#type' => 'value',
'#value' => $domain['domain_id'],
);
$extra['#redirect'] = 'admin/build/domain/conf/' . $domain['domain_id'];
$form = confirm_form($extra, t('Are you sure you wish to reset the settings for %name?', array(
'%name' => $domain['sitename'],
)), 'admin/build/domain/conf/' . $domain_id, t('Submitting this form will restore default settings for this domain.'));
return $form;
}