function domain_theme_reset_form in Domain Access 7.2
Same name and namespace in other branches
- 5 domain_theme/domain_theme.module \domain_theme_reset_form()
- 6.2 domain_theme/domain_theme.admin.inc \domain_theme_reset_form()
- 7.3 domain_theme/domain_theme.admin.inc \domain_theme_reset_form()
FormsAPI for resetting a domain themes.
Parameters
$domain: The $domain object for the selected domain.
Return value
A themed HTML form.
1 string reference to 'domain_theme_reset_form'
- domain_theme_reset in domain_theme/
domain_theme.admin.inc - Resets theme settings by removing the domain row from {domain_theme}.
File
- domain_theme/
domain_theme.admin.inc, line 183 - Include file to handle theme configration screen
Code
function domain_theme_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 theme for %name?', array(
'%name' => $domain['sitename'],
)), 'admin/structure/domain/theme/' . $domain['domain_id'], t('Submitting this form will restore default theme for this domain.'));
return $form;
}