You are here

function theme_search_api_dropbutton in Search API 7

Returns HTML for a drobutton list of links.

When using this, you have to

Parameters

array $variables: An associative array containing the following keys:

  • links: An array of links, as expected by theme_links().

Return value

string HTML for the dropbutton link list.

1 theme call to theme_search_api_dropbutton()
search_api_admin_overview in ./search_api.admin.inc
Page callback that shows an overview of defined servers and indexes.

File

./search_api.admin.inc, line 156
Administration page callbacks for the Search API module.

Code

function theme_search_api_dropbutton(array &$variables) {
  $base_path = drupal_get_path('module', 'search_api') . '/';
  drupal_add_css($base_path . 'search_api.admin.css');
  drupal_add_js($base_path . 'search_api.admin.js');
  $variables['attributes']['class'][] = 'dropbutton';
  $list = theme('links', $variables);
  return "<div class=\"dropbutton-wrapper\">\n  <div class=\"dropbutton-widget\">\n    {$list}\n  </div>\n</div>";
}