You are here

function fontyourface_ui_settings_form_submit in @font-your-face 7.2

Handles provider imports.

File

modules/fontyourface_ui/fontyourface_ui.module, line 652

Code

function fontyourface_ui_settings_form_submit($form, &$form_state) {
  if ($form_state['clicked_button']['#array_parents'][1] == 'update_advanced') {
    variable_set('fontyourface_detailed_logging', $form_state['values']['detailed_logs']);
    variable_set('fontyourface_load_everywhere', $form_state['values']['load_everywhere']);
    return;
  }
  if ($form_state['clicked_button']['#array_parents'][1] == 'update_preview') {
    variable_set('fontyourface_short_preview_text', $form_state['values']['short_preview_text']);
    return;
  }
  foreach (module_implements('fontyourface_import') as $module) {
    if ($form_state['clicked_button']['#array_parents'][1] == $module . '_import') {
      fontyourface_import_fonts($module);
      return;
    }

    // if
  }

  // foreach
}