You are here

function mobile_theme_settings_submit in Mobile Theme 7

Same name and namespace in other branches
  1. 5 mobile_theme.module \mobile_theme_settings_submit()
  2. 6 mobile_theme.module \mobile_theme_settings_submit()

Submit handler on the theme settings to save the mobile theme.

1 string reference to 'mobile_theme_settings_submit'
mobile_theme_form_system_theme_settings_alter in ./mobile_theme.module
Alter the system theme settings form to add the mobile theme settings.

File

./mobile_theme.module, line 225

Code

function mobile_theme_settings_submit($form, $form_state) {
  if (isset($form_state['values']['mobile_theme_selection'])) {
    variable_set('mobile_theme_selection', $form_state['values']['mobile_theme_selection']);
  }
  if (isset($form_state['values']['mobile_theme_detection'])) {
    variable_set('mobile_theme_detection', $form_state['values']['mobile_theme_detection']);
  }
}