You are here

function theme_current_search_item_wrapper in Facet API 7.2

Same name and namespace in other branches
  1. 6.3 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' => array(
      'current-search-item',
      drupal_html_class('current-search-item-' . $element['#current_search_id']),
      drupal_html_class('current-search-item-' . $element['#current_search_name']),
    ),
  );
  return '<div' . drupal_attributes($attributes) . '>' . $element['#children'] . '</div>';
}