You are here

function theme_current_search_item_wrapper in Facet API 6.3

Same name and namespace in other branches
  1. 7.2 contrib/current_search/current_search.theme.inc \theme_current_search_item_wrapper()
  2. 7 contrib/current_search/current_search.theme.inc \theme_current_search_item_wrapper()

Adds wrapper markup around the current search item.

Parameters

$variables: An associative array containing:

  • element: The render array for the current search item.

File

contrib/current_search/current_search.theme.inc, line 62
Theme functions for the Current Search Blocks module.

Code

function theme_current_search_item_wrapper(array $variables) {
  $element = $variables['element'];
  $attributes = array(
    'class' => 'current-search-item current-search-item-' . $element['#current_search_id'],
  );
  return '<div' . drupal_attributes($attributes) . '>' . $element['#children'] . '</div>';
}