You are here

function fontdeck_form_alter in @font-your-face 7

Same name and namespace in other branches
  1. 6.2 modules/fontdeck/fontdeck.module \fontdeck_form_alter()
  2. 7.2 modules/fontdeck/fontdeck.module \fontdeck_form_alter()

Implements hook_form_alter().

File

modules/fontdeck/fontdeck.module, line 81

Code

function fontdeck_form_alter(&$form, &$form_state, $form_id) {
  if ($form_id == 'fontyourface_settings_form') {
    $form['fontdeck'] = array(
      '#type' => 'fieldset',
      '#title' => 'Fontdeck',
      '#weight' => -1,
      'fontdeck_project' => array(
        '#type' => 'textfield',
        '#title' => t('Fontdeck project number'),
        '#description' => t('This is the number in the URL http://fontdeck.com/project/####'),
        '#default_value' => variable_get('fontdeck_project', ''),
      ),
      'fontdeck_project_save' => array(
        '#type' => 'submit',
        '#value' => 'Update',
      ),
    );
    $form['#submit'][] = 'fontdeck_project_submit';
  }

  // if
}