Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Support placing the navbar into the top navigation
function bootstrap_mobildata_preprocess_form (&$variables) {
if ($variables['attributes']['id'] == 'search-block-form') {
if (!isset ($variables['attributes']['class'])) {
$variables['attributes']['class'] = array();
$variables['attributes']['class'] = array_merge ($variables['attributes']['class'], array('navbar-form navbar-right'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.