You are here

function term_merge_form_alter in Term Merge 5

Same name and namespace in other branches
  1. 6 term_merge.module \term_merge_form_alter()

Implementation of hook_form_alter().

File

./term_merge.module, line 132

Code

function term_merge_form_alter($form_id, &$form) {

  // Add the link to the term edit form
  if ($form_id == 'taxonomy_form_term') {
    $tid = $form['tid']['#value'];

    //$tid= arg(5);
    $form['merge'] = array(
      '#value' => '<div><strong>' . l(t('Merge this term into another another'), "term_merge/merge/{$tid}") . '</strong></div>',
    );
  }
}