function breakpoints_breakpoint_name_exists in Breakpoints 7
Check if a breakpoint name already exists.
1 string reference to 'breakpoints_breakpoint_name_exists'
- breakpoints_admin_breakpoints in ./
breakpoints.admin.inc - Admin form
File
- ./
breakpoints.module, line 558 - Breakpoints @todo: provide button to reload breakpoints from theme
Code
function breakpoints_breakpoint_name_exists($machine_name) {
$breakpoints = breakpoints_breakpoint_load_all_custom();
$fullkey = 'custom.user.' . $machine_name;
return array_key_exists($fullkey, $breakpoints);
}