function navbar_update_7001 in Navbar 7
Remove the dependency on the Breakpoints module.
File
- ./
navbar.install, line 95 - navbar.install
Code
function navbar_update_7001() {
// Try to load the breakpoints module first. There is no guarantee that it is
// loaded.
if (drupal_load('module', 'breakpoints')) {
foreach (breakpoints_breakpoint_load_all() as $breakpoint) {
$identifiers = explode('.', $breakpoint->machine_name);
// Delete all of the breakpionts associated with the navbar.
if ($identifiers[1] === 'module' && $identifiers[2] === 'navbar') {
breakpoints_breakpoint_delete($breakpoint);
}
}
}
}