function term_merge_duplicates_fieldset_preprocess in Term Merge 7
Form element preprocess function.
Insert extra column for choosing term trunk into tableselect of terms to be merged.
1 string reference to 'term_merge_duplicates_fieldset_preprocess'
- term_merge_duplicates_form in ./
term_merge.pages.inc - Generate 'term_merge_duplicates_form'.
File
- ./
term_merge.pages.inc, line 668 - Menu page callbacks for Term Merge module.
Code
function term_merge_duplicates_fieldset_preprocess($element) {
$options =& $element['duplicates']['#options'];
foreach ($options as $tid => $row) {
$element['trunk_tid'][$tid]['#title_display'] = 'invisible';
$options[$tid] = array(
'trunk' => drupal_render($element['trunk_tid'][$tid]),
) + $options[$tid];
}
$element['trunk_tid']['#title_display'] = 'invisible';
$element['duplicates']['#header'] = array(
'trunk' => $element['trunk_tid']['#title'],
) + $element['duplicates']['#header'];
return $element;
}