function breakpoints_breakpoint_validate in Breakpoints 7
Validate a single breakpoint.
2 calls to breakpoints_breakpoint_validate()
- breakpoints_admin_breakpoint_group_import_form_validate in ./
breakpoints.admin.inc - Validate a breakpoint group import.
- breakpoints_admin_breakpoint_import_form_validate in ./
breakpoints.admin.inc - Validate a breakpoint import.
File
- ./
breakpoints.module, line 661 - Breakpoints @todo: provide button to reload breakpoints from theme
Code
function breakpoints_breakpoint_validate($breakpoint) {
if (!is_object($breakpoint)) {
return FALSE;
}
foreach (array_keys(breakpoints_breakpoint_empty_array()) as $property) {
if (!property_exists($breakpoint, $property)) {
return FALSE;
}
}
return TRUE;
}