You are here

function fonts_com_token_submit in @font-your-face 6.2

Same name and namespace in other branches
  1. 7 modules/fonts_com/fonts_com.module \fonts_com_token_submit()

Updates auth token.

1 string reference to 'fonts_com_token_submit'
fonts_com_form_alter in modules/fonts_com/fonts_com.module
Implements hook_form_alter().

File

modules/fonts_com/fonts_com.module, line 319

Code

function fonts_com_token_submit($form, &$form_state) {
  if ($form_state['clicked_button']['#parents'][0] == 'fonts_com_token_save') {
    variable_set('fonts_com_token', $form_state['values']['fonts_com_token']);
    drupal_set_message(t('Fonts.com token updated.'));
  }

  // if
}