function birthdays_field_views_handler_filter::birthdays_validate_offset in Birthdays 7
Validate offset.
File
- views/
birthdays_field_views_handler_filter.inc, line 77 - The birthdays_field_views_handler_filter class.
Class
- birthdays_field_views_handler_filter
- Handler that allows to filter by birthday fields.
Code
function birthdays_validate_offset($element, $value, &$form_state) {
$value = strval(intval($value));
if ($value && drupal_substr($value, 0, 1) != '-') {
$value = '+' . $value;
}
form_set_value($element, $value, $form_state);
}