You are here

function override_css_reset_selector_form in Override css 7

Build a confirm form for to reset a selector group

2 string references to 'override_css_reset_selector_form'
override_css_reset_selector_page in ./override_css.admin.inc
Menu callback to reset a selector group
override_css_settings_form_alter in override_css_settings/override_css_settings.module
Implements hook_form_alter().

File

./override_css.admin.inc, line 12

Code

function override_css_reset_selector_form($form, &$form_state, $selector, $redirect = FALSE) {
  $form['#selector'] = $selector;
  $form['#redirect'] = $redirect;
  $path = $redirect ? variable_get('override_css_settings_path', OVERRIDE_CSS_SETTINGS_PATH) : 'admin/appearance/override_css/list/' . $selector['name'];
  return confirm_form($form, t('Are you sure you want to reset the selector group %title?', array(
    '%title' => $selector['title'],
  )), $path);
}