You are here

function domain_locale_reset_form in Domain Locale 6

Same name and namespace in other branches
  1. 7 domain_locale.admin.inc \domain_locale_reset_form()

FormsAPI for resetting domain languages.

Parameters

$domain: The $domain object for the selected domain.

Return value

Themed HTML form.

1 string reference to 'domain_locale_reset_form'
domain_locale_reset in ./domain_locale.admin.inc
Resets locale settings by setting them to default domain settings in {domain_locale}.

File

./domain_locale.admin.inc, line 163
Provides admin functionality for domain specific language settings

Code

function domain_locale_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 languages for %name?', array(
    '%name' => $domain['sitename'],
  )), 'admin/build/domain/language/' . $domain['domain_id'], t('Submitting this form will apply default domain languages for this domain.'));
  return $form;
}