You are here

function domain_theme_reset_form in Domain Access 5

Same name and namespace in other branches
  1. 6.2 domain_theme/domain_theme.admin.inc \domain_theme_reset_form()
  2. 7.3 domain_theme/domain_theme.admin.inc \domain_theme_reset_form()
  3. 7.2 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

Themed HTML form.

1 string reference to 'domain_theme_reset_form'
domain_theme_reset in domain_theme/domain_theme.module
Resets theme settings by removing the domain row from {domain_theme}.

File

domain_theme/domain_theme.module, line 106
Domain Theme module for the Domain Access module group.

Code

function domain_theme_reset_form($domain) {
  $extra['domain_id'] = array(
    '#type' => 'value',
    '#value' => $domain['domain_id'],
  );
  $extra['#redirect'] = 'admin/build/domain/theme/' . $domain['domain_id'];
  $form = confirm_form($extra, t('Are you sure you wish to reset the theme for %name?', array(
    '%name' => $domain['sitename'],
  )), 'admin/build/domain/theme/' . $domain_id, t('Submitting this form will restore default theme for this domain.'));
  return $form;
}