You are here

function theme_facetapi_link in Facet API 6.3

Same name and namespace in other branches
  1. 6 facetapi.theme.inc \theme_facetapi_link()

Returns HTML for a link.

All Drupal code that outputs a link should call the l() function. That function performs some initial preprocessing, and then, if necessary, calls theme('link') for rendering the anchor tag.

To optimize performance for sites that don't need custom theming of links, the l() function includes an inline copy of this function, and uses that copy if none of the enabled modules or the active theme implement any preprocess or process functions or override this theme implementation.

Parameters

$variables: An associative array containing the keys 'text', 'path', and 'options'. See the l() function for information about these variables.

See also

l()

http://api.drupal.org/api/drupal/includes--theme.inc/function/theme_link/7

3 calls to theme_facetapi_link()
theme_current_search_link_active in contrib/current_search/current_search.theme.inc
Returns HTML for a grouped active facet item.
theme_facetapi_link_active in ./facetapi.theme.inc
Returns HTML for an inactive facet item.
theme_facetapi_link_inactive in ./facetapi.theme.inc
Returns HTML for an inactive facet item.

File

./facetapi.theme.inc, line 170
Theme functions for the Facet API module.

Code

function theme_facetapi_link($variables) {
  return '<a href="' . check_plain(url($variables['path'], $variables['options'])) . '"' . drupal_attributes($variables['options']['attributes']) . '>' . ($variables['options']['html'] ? $variables['text'] : check_plain($variables['text'])) . '</a>';
}