You are here

function typekit_api_token_submit in @font-your-face 7.2

Same name and namespace in other branches
  1. 6.2 modules/typekit_api/typekit_api.module \typekit_api_token_submit()
  2. 7 modules/typekit_api/typekit_api.module \typekit_api_token_submit()

Updates API token.

1 string reference to 'typekit_api_token_submit'
typekit_api_form_alter in modules/typekit_api/typekit_api.module
Implements hook_form_alter().

File

modules/typekit_api/typekit_api.module, line 163

Code

function typekit_api_token_submit($form, &$form_state) {
  if ($form_state['clicked_button']['#parents'][0] == 'typekit_api_save') {
    variable_set('typekit_api_token', $form_state['values']['typekit_api_token']);
    drupal_set_message(t('Typeit API token updated.'));
  }

  // if
}