function breakpoints_breakpoint_load_by_fullkey in Breakpoints 7
Load a single breakpoint using the full config key.
15 calls to breakpoints_breakpoint_load_by_fullkey()
- BreakpointsCRUDTestCase::testBreakpointsCRUD in ./
breakpoints.test - Test CRUD operations for breakpoints.
- BreakpointsTestCase::verifyBreakpoint in ./
breakpoints.test - Verify that a breakpoint is properly stored.
- breakpoints_admin_breakpoints in ./
breakpoints.admin.inc - Admin form
- breakpoints_admin_breakpoints_submit in ./
breakpoints.admin.inc - Admin form submit.
- breakpoints_admin_breakpoint_export_form in ./
breakpoints.admin.inc - Export a breakpoint.
1 string reference to 'breakpoints_breakpoint_load_by_fullkey'
- breakpoints_breakpoint_reset in ./
breakpoints.module - Clears the breakpoint caches.
File
- ./
breakpoints.module, line 372 - Breakpoints @todo: provide button to reload breakpoints from theme
Code
function breakpoints_breakpoint_load_by_fullkey($machine_name = NULL) {
$breakpoints =& drupal_static(__FUNCTION__);
if (!isset($breakpoints)) {
$breakpoints = _breakpoints_breakpoint_load_all_callback();
}
if ($machine_name) {
$breakpoint = isset($breakpoints[$machine_name]) ? $breakpoints[$machine_name] : FALSE;
return $breakpoint;
}
else {
return $breakpoints;
}
}