You are here

function _designkit_system_theme_settings_submit in DesignKit 6

Same name and namespace in other branches
  1. 7 designkit.admin.inc \_designkit_system_theme_settings_submit()

Submit handler for system_theme_settings.

1 string reference to '_designkit_system_theme_settings_submit'
designkit_form_system_theme_settings_alter in ./designkit.module
Theme integration. Implementation of hook_form_alter() for system_theme_settings.

File

./designkit.admin.inc, line 95

Code

function _designkit_system_theme_settings_submit(&$form, &$form_state) {
  if ($form_state['values']['op'] == t('Reset to defaults')) {
    variable_del('designkit_image');
    variable_del('designkit_color');
  }
  else {
    if (isset($form_state['values']['designkit_image'])) {
      variable_set('designkit_image', $form_state['values']['designkit_image']);
    }
    if (isset($form_state['values']['designkit_color'])) {
      variable_set('designkit_color', $form_state['values']['designkit_color']);
    }
  }
}