You are here

function breakpoints_breakpoint_group_load in Breakpoints 7

Load a single breakpoint group.

18 calls to breakpoints_breakpoint_group_load()
BreakpointGroupCRUDTestCase::testBreakpointGroupCRUD in ./breakpoints.test
Test CRUD operations for breakpoint groups.
BreakpointGroupTestCase::verifyBreakpointGroup 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_breakpoints_submit_exporttotheme in ./breakpoints.admin.inc
Admin form submit - Export breakpoints to theme.

... See full list

File

./breakpoints.module, line 631
Breakpoints @todo: provide button to reload breakpoints from theme

Code

function breakpoints_breakpoint_group_load($name = NULL) {
  $groups = breakpoints_breakpoint_group_load_all();
  if ($name) {
    $group = isset($groups[$name]) ? $groups[$name] : FALSE;
    return $group;
  }
  else {
    return $groups;
  }
}