You are here

function _themekey_ui_settings_submit in ThemeKey 6

Function _themekey_ui_settings_submit().

1 string reference to '_themekey_ui_settings_submit'
_themekey_ui_settings_form in ./themekey_ui_admin.inc
Function _themekey_ui_settings_form().

File

./themekey_ui_admin.inc, line 70

Code

function _themekey_ui_settings_submit($form, &$form_state) {

  //
  foreach ($form_state['values'] as $key => $value) {
    $pos = strpos($key, 'themekey_ui_');
    if ($pos !== FALSE && $pos == 0) {
      variable_set($key, $value);
    }
  }
  drupal_set_message(t('The configuration options have been saved.'));
}