You are here

function hook_navbar_breakpoints_alter in Navbar 7

Implementing hook_navbar_breakpoints_alter allows a module to change the media query string associated with one of the three default breakpoints that the Navbar reacts to.

See also

Drupal.navbar.mediaQueryChangeHandler in navbar.js.

1 invocation of hook_navbar_breakpoints_alter()
navbar_pre_render in ./navbar.module
Builds the Navbar as a structured array ready for drupal_render().

File

./navbar.api.php, line 175
Hooks provided by the navbar module.

Code

function hook_navbar_breakpoints_alter(&$breakpoints) {
  $breakpoints['standard'] = 'only screen and (min-width: 35em)';
}