You are here

function term_merge_duplicate_suggestion in Term Merge 7

Retrieve information about ctools plugin of type 'duplicate suggestion'.

Parameters

string $id: Supply here ID of the cTool plugin information about which you want to retrieve. You may omit this argument and then information on all duplicate suggestion plugins will be returned

Return value

array Array of information on all available duplicate suggestion plugins or if $id was provided, then information on that plugin

1 call to term_merge_duplicate_suggestion()
term_merge_duplicates_form in ./term_merge.pages.inc
Generate 'term_merge_duplicates_form'.

File

./term_merge.module, line 677
Provide functionality for merging taxonomy terms one into another.

Code

function term_merge_duplicate_suggestion($id = NULL) {
  ctools_include('plugins');
  $plugins = ctools_get_plugins('term_merge', 'duplicate_suggestion', $id);
  if (!$id) {

    // Sort the list of plugins by their weight.
    uasort($plugins, 'drupal_sort_weight');
  }
  return $plugins;
}