You are here

function breakpoints_breakpoint_toggle_status in Breakpoints 7

Toggle status of a single breakpoint.

1 call to breakpoints_breakpoint_toggle_status()
breakpoints_admin_breakpoint_actions_form_submit in ./breakpoints.admin.inc
Admin action form submit

File

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

Code

function breakpoints_breakpoint_toggle_status($machine_name) {
  $breakpoint = breakpoints_breakpoint_load_by_fullkey($machine_name);
  if ($breakpoint) {
    $breakpoint->status = !$breakpoint->status;
    breakpoints_breakpoint_save($breakpoint);
  }
}