function breakpoints_breakpoint_group_validate in Breakpoints 7
Validate a single breakpoint group.
1 call to breakpoints_breakpoint_group_validate()
- breakpoints_admin_breakpoint_group_import_form_validate in ./
breakpoints.admin.inc - Validate a breakpoint group import.
File
- ./
breakpoints.module, line 646 - Breakpoints @todo: provide button to reload breakpoints from theme
Code
function breakpoints_breakpoint_group_validate($group) {
if (!is_object($group)) {
return FALSE;
}
foreach (array(
'machine_name',
'name',
'breakpoints',
'type',
) as $property) {
if (!property_exists($group, $property)) {
return FALSE;
}
}
return TRUE;
}