function bootstrap_bootstrap_search_form_wrapper

7.x-3.x bootstrap-search-form-wrapper.func.php bootstrap_bootstrap_search_form_wrapper(array $variables)

Returns HTML for the Bootstrap search form wrapper.

Parameters

array $variables: An associative array of variables.

Return value

string The constructed HTML markup.

Related topics

Source templates/bootstrap/bootstrap-search-form-wrapper.func.php (line 19)

function bootstrap_bootstrap_search_form_wrapper(array $variables) {
  $output = '<div class="input-group">';
  $output .= $variables['element']['#children'];
  $output .= '<span class="input-group-btn">';
  $output .= '<button type="submit" class="btn btn-primary">' . _bootstrap_icon('search', t('Search')) . '</button>';
  $output .= '</span>';
  $output .= '</div>';
  return $output;
}