You are here

function theme_freelink in Freelinking 6.3

Same name and namespace in other branches
  1. 7.3 freelinking.module \theme_freelink()

Theme the Freelink

1 string reference to 'theme_freelink'
freelinking_theme in ./freelinking.module
Implementation of hook_theme().
1 theme call to theme_freelink()
freelinking_get_freelink in ./freelinking.utilities.inc
Process the target text into a link with the specified plugin.

File

./freelinking.module, line 340

Code

function theme_freelink($plugin = NULL, $link = NULL) {
  $prefix = '';
  $suffix = '';
  if (isset($link['extra'])) {
    $prefix = $link['extra']['prefix'];
    $suffix = $link['extra']['suffix'];
    unset($link['extra']);
  }
  $rendered = $prefix . call_user_func_array('l', $link) . $suffix;
  return $rendered;
}