function domain_conf_reset_form in Domain Access 7.2
Same name and namespace in other branches
- 5 domain_conf/domain_conf.module \domain_conf_reset_form()
- 6.2 domain_conf/domain_conf.admin.inc \domain_conf_reset_form()
- 7.3 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.admin.inc - Resets configuration settings by removing the domain row from {domain_conf}.
File
- domain_conf/
domain_conf.admin.inc, line 220 - Domain manager configuration options.
Code
function domain_conf_reset_form($form, &$form_state, $domain) {
$extra['domain_id'] = array(
'#type' => 'value',
'#value' => $domain['domain_id'],
);
$form = confirm_form($extra, t('Are you sure you wish to reset the settings for %name?', array(
'%name' => $domain['sitename'],
)), 'admin/structure/domain/conf/' . $domain['domain_id'], t('Submitting this form will restore default settings for this domain.'));
return $form;
}