You are here

function breakpoints_breakpoint_machine_name_exists in Breakpoints 7

Check if a breakpoint machine name already exists.

1 call to breakpoints_breakpoint_machine_name_exists()
breakpoints_admin_breakpoint_import_form_validate in ./breakpoints.admin.inc
Validate a breakpoint import.

File

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

Code

function breakpoints_breakpoint_machine_name_exists($machine_name) {

  // Just try to load the breakpoint object, we profit from ctool's cache mechanism,
  // better that doing a query to the db every time this function is called.
  return (bool) breakpoints_breakpoint_load_by_fullkey($machine_name);
}