function term_merge_form_alter in Term Merge 6
Same name and namespace in other branches
- 5 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, &$form_state, $form_id) {
// 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>',
);
}
}