function domain_locale_reset_form in Domain Locale 7
Same name and namespace in other branches
- 6 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 178 - Provides admin functionality for domain specific language settings
Code
function domain_locale_reset_form($form, $form_state, $domain) {
$extra['domain_id'] = array(
'#type' => 'value',
'#value' => isset($domain['domain_id']) ? $domain['domain_id'] : NULL,
);
$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;
}