You are here

function linkit_search_styled_link in Linkit 7

Same name and namespace in other branches
  1. 6 linkit.module \linkit_search_styled_link()
1 string reference to 'linkit_search_styled_link'
linkit_menu in ./linkit.module
Implements hook_menu().

File

./linkit.module, line 234
Main file for linkit module.

Code

function linkit_search_styled_link() {
  drupal_add_http_header('Content-Type', 'text/plain; charset=utf-8');
  if (isset($_GET['string'])) {
    $string = check_plain($_GET['string']);
    $matches = module_invoke_all('linkit_get_search_styled_link', $string);
    echo isset($matches[0]) ? $matches[0] : '';
  }
}