function layout_breakpoint_edit_form_validate in Layout 7
Validation for breakpoint item settings form.
See also
layout_breakpoint_edit_form().
1 string reference to 'layout_breakpoint_edit_form_validate'
- layout_breakpoint.inc in plugins/
export_ui/ layout_breakpoint.inc
File
- plugins/
export_ui/ layout_breakpoint.inc, line 67
Code
function layout_breakpoint_edit_form_validate(&$form, $form_state) {
if (!preg_match('!^\\d+(px|em)$!', $form_state['values']['width'])) {
form_set_error('width', t('Only pixel or em based breakpoints are supported, for example 960px or 41em.'));
}
}