Projet

Général

Profil

Paste
Télécharger (563 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / bootstrap / templates / bootstrap / bootstrap-search-form-wrapper.func.php @ 7547bb19

1
<?php
2
/**
3
 * @file
4
 * Stub file for bootstrap_bootstrap_search_form_wrapper().
5
 */
6

    
7
/**
8
 * Returns HTML for the Bootstrap search form wrapper.
9
 *
10
 * @ingroup theme_functions
11
 */
12
function bootstrap_bootstrap_search_form_wrapper($variables) {
13
  $output = '<div class="input-group">';
14
  $output .= $variables['element']['#children'];
15
  $output .= '<span class="input-group-btn">';
16
  $output .= '<button type="submit" class="btn btn-primary">' . _bootstrap_icon('search', t('Search')) . '</button>';
17
  $output .= '</span>';
18
  $output .= '</div>';
19
  return $output;
20
}