You are here

function LinkitPlugin::buildDescription in Linkit 7.2

Build the search row description.

If there is a "result_description", run it thro token_replace.

Parameters

object $data: An object that will be used in the token_place function

See also

token_replace()

1 method overrides LinkitPlugin::buildDescription()
LinkitPluginEntity::buildDescription in plugins/linkit_plugins/linkit-plugin-entity.class.php
Build the search row description.

File

plugins/plugin.class.php, line 91
Linkit Plugin interface.

Class

LinkitPlugin
LinkitPlugin.

Code

function buildDescription($data) {
  if (isset($this->profile->data[$this->plugin['name']]['result_description'])) {
    $description = token_replace(check_plain($this->profile->data[$this->plugin['name']]['result_description']), array(
      $this->plugin_name => $data,
    ), array(
      'clear' => TRUE,
    ));
    return $description;
  }
}