You are here

function fontyourface_ui_admin_enable_form_submit in @font-your-face 7.2

Enable form submit handler.

File

modules/fontyourface_ui/fontyourface_ui.module, line 1379

Code

function fontyourface_ui_admin_enable_form_submit($form, &$form_state) {
  if ($form_state['clicked_button']['#value'] == t('Enable')) {
    $font = fontyourface_get_font($form_state['values']['fid']);
    fontyourface_enable_font($font);
    drupal_set_message(t('Enabled @font.', array(
      '@font' => $font->name,
    )));
  }
  else {
    drupal_set_message(t('Canceled.'));
  }

  // else
}