1 simpletest_example.module simpletest_example_empty_mysql_date($date_string)

A simple self-contained function used to demonstrate unit tests.

See also

SimpletestUnitTestExampleTestCase

Related topics

File

modules/examples/simpletest_example/simpletest_example.module, line 110
Hook implementations for the SimpleTest Example module.

Code

function simpletest_example_empty_mysql_date($date_string) {
  if (empty($date_string) || $date_string == '0000-00-00' || $date_string == '0000-00-00 00:00:00') {
    return TRUE;
  }
  return FALSE;
}