function fonts_com_token_submit in @font-your-face 7
Same name and namespace in other branches
- 6.2 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 318
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
}