You are here

function date_range_valid in Date 7

Same name and namespace in other branches
  1. 8 date_api/date_api.module \date_range_valid()
  2. 6.2 date_api.module \date_range_valid()
  3. 7.3 date_api/date_api.module \date_range_valid()
  4. 7.2 date_api/date_api.module \date_range_valid()
1 call to date_range_valid()
date_field_widget_settings_form_validate in ./date_admin.inc

File

date_api/date_api.module, line 1834
This module will make the date API available to other modules. Designed to provide a light but flexible assortment of functions and constants, with more functionality in additional files that are not loaded unless other modules specifically include them.

Code

function date_range_valid($string) {
  $matches = preg_match('@\\-[0-9]*:[\\+|\\-][0-9]*@', $string);
  return $matches < 1 ? FALSE : TRUE;
}