You are here

function themekey_ui_user_profile_form_submit in ThemeKey 7.3

1 string reference to 'themekey_ui_user_profile_form_submit'
themekey_ui_form_alter in ./themekey_ui.module
Implements hook_form_alter().

File

./themekey_ui.module, line 302
ThemeKey UI is an extension for ThemeKey

Code

function themekey_ui_user_profile_form_submit($form, &$form_state) {
  if ($form_state['values']['themekey_ui_theme'] != $form['#prev_themekey_ui_author_theme']) {
    module_load_include('inc', 'themekey', 'themekey_base');
    themekey_invoke_modules('themekey_ui_author_theme_selected', $form['#user']->uid, $form_state['values']['themekey_ui_theme']);
    module_invoke_all('themekey_ui_author_theme_selected', $form['#user']->uid, $form_state['values']['themekey_ui_theme']);
  }
}