You are here

function _themekey_ui_pathalias_submit in ThemeKey 6

Function _themekey_ui_pathalias_submit().

1 string reference to '_themekey_ui_pathalias_submit'
_themekey_ui_pathalias in ./themekey_ui_admin.inc
Function _themekey_ui_pathalias().

File

./themekey_ui_admin.inc, line 164

Code

function _themekey_ui_pathalias_submit($form, &$form_state) {
  if (!isset($form_state['values']['theme'])) {
    themekey_ui_del_path_theme($form['#alias']['src']);
  }
  else {
    themekey_ui_set_path_theme($form['#alias']['src'], $form_state['values']['theme']);
  }
}