You are here

function date_api_simpletest in Date 5

Same name and namespace in other branches
  1. 5.2 date_api.module \date_api_simpletest()
  2. 6.2 date_api.module \date_api_simpletest()
  3. 6 date_api.module \date_api_simpletest()

Implementation of hook_simpletest().

File

./date_api.module, line 101
A module that will make the date API available to other modules with no dependencies on CCK. To use it, install the module, then add the following code wherever date api functions are needed:

Code

function date_api_simpletest() {
  $dir = drupal_get_path('module', 'date_api') . '/tests';
  $tests = file_scan_directory($dir, '\\.test$');
  return array_keys($tests);
}