Created
October 28, 2016 19:57
-
-
Save lanoxx/02382d6b99ff8ccd40580957ed0f81c7 to your computer and use it in GitHub Desktop.
Support placing the navbar into the top navigation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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