You are here

function domain_conf_reset_form in Domain Access 6.2

Same name and namespace in other branches
  1. 5 domain_conf/domain_conf.module \domain_conf_reset_form()
  2. 7.3 domain_conf/domain_conf.admin.inc \domain_conf_reset_form()
  3. 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.admin.inc
Resets configuration settings by removing the domain row from {domain_conf}.

File

domain_conf/domain_conf.admin.inc, line 206
Domain manager configuration options.

Code

function domain_conf_reset_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/build/domain/conf/' . $domain['domain_id'], t('Submitting this form will restore default settings for this domain.'));
  return $form;
}