You are here

function taxonomy_title_form_alter in Taxonomy Title 5

Implementation of hook_form_alter()

File

./taxonomy_title.module, line 18

Code

function taxonomy_title_form_alter($form_id, &$form) {
  if ($form_id == 'taxonomy_form_term') {
    $title = _taxonomy_title_get_title($form['tid']['#value']);
    $form['tax_title'] = array(
      '#type' => 'textfield',
      '#title' => t('Taxonomy Page Title'),
      '#default_value' => $title,
      '#description' => t('This is the title you will see on your taxonomy page.  If left blank, the term name will be used.'),
      '#weight' => -1,
    );

    //print_r($form);exit;
  }
}