You are here

function fontyourface_ui_admin_disable_form_submit in @font-your-face 7.2

Disable form submit handler.

File

modules/fontyourface_ui/fontyourface_ui.module, line 1439

Code

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

  // else
}