You are here

function custom_search_preprocess_block in Custom Search 8

Implements hook_preprocess_HOOK() for block templates.

File

./custom_search.module, line 389
Bring customizations to the default search box.

Code

function custom_search_preprocess_block(&$variables) {
  if ($variables['plugin_id'] == 'custom_search') {
    $variables['attributes']['role'] = 'search';
    $variables['content_attributes']['class'][] = 'container-inline';
  }
}