You are here

function LinkitSearchPluginTaxonomy_term::createDescription in Linkit 7.3

Overrides LinkitSearchPluginEntity::createDescription().

Overrides LinkitSearchPluginEntity::createDescription

File

plugins/linkit_search/taxonomy_term.class.php, line 27
Define Linkit term search plugin class.

Class

LinkitSearchPluginTaxonomy_term
Reprecents a Linkit term search plugin.

Code

function createDescription($data) {
  $description = token_replace(check_plain($this->conf['result_description']), array(
    'term' => $data,
  ), array(
    'clear' => TRUE,
  ));
  return $description;
}