function fonts_com_form_alter in @font-your-face 6.2
Same name and namespace in other branches
- 7 modules/fonts_com/fonts_com.module \fonts_com_form_alter()
Implements hook_form_alter().
File
- modules/
fonts_com/ fonts_com.module, line 290
Code
function fonts_com_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'fontyourface_settings_form') {
$form['fonts_com'] = array(
'#type' => 'fieldset',
'#title' => 'Fonts.com',
'#weight' => -1,
'fonts_com_token' => array(
'#type' => 'textfield',
'#title' => t('Fonts.com authentication token'),
'#description' => t('This is available at !url', array(
'!url' => l('https://webfonts.fonts.com/en-US/Account/AccountInformation', 'https://webfonts.fonts.com/en-US/Account/AccountInformation'),
)),
'#default_value' => variable_get('fonts_com_token', ''),
),
'fonts_com_token_save' => array(
'#type' => 'submit',
'#value' => 'Update Fonts.com',
),
);
$form['#submit'][] = 'fonts_com_token_submit';
}
// if
}