You are here

function breakpoints_breakpoint_delete_by_fullkey in Breakpoints 7

Delete a single breakpoint.

2 calls to breakpoints_breakpoint_delete_by_fullkey()
breakpoints_admin_breakpoint_actions_form_submit in ./breakpoints.admin.inc
Admin action form submit
breakpoints_breakpoint_delete in ./breakpoints.module
Delete a single breakpoint.

File

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

Code

function breakpoints_breakpoint_delete_by_fullkey($key) {
  if (!empty($key)) {
    $sql = "DELETE FROM {breakpoints} where machine_name = :key";
    db_query($sql, array(
      ':key' => $key,
    ));
  }
  breakpoints_breakpoint_reset();
}