function oa_core_update_7218 in Open Atrium Core 7.2
Create wide breakpoint for navbar if one does not exist.
Without this breakpoint, the navbar breaks in IE10+
File
- ./
oa_core.install, line 172 - Provides update and install hooks to oa_core.
Code
function oa_core_update_7218() {
if (module_exists('breakpoints')) {
if (!($breakpoint = breakpoints_breakpoint_load('wide', 'navbar', 'module'))) {
// Add a breakpoint for switching between horizontal and vertical tray
// orientation.
$breakpoint = new stdClass();
$breakpoint->disabled = FALSE;
$breakpoint->api_version = 1;
$breakpoint->name = 'wide';
$breakpoint->breakpoint = 'only screen and (min-width: 50em)';
$breakpoint->source = 'navbar';
$breakpoint->source_type = 'module';
$breakpoint->status = 1;
$breakpoint->weight = 0;
$breakpoint->multipliers = array();
breakpoints_breakpoint_save($breakpoint);
}
}
}