You are here

function linkit_search_styled_link in Linkit 6

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

File

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

Code

function linkit_search_styled_link() {
  drupal_set_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] : '';
  }
}