function date_api_views_fetch_fields in Date 6.2
Wrapper function to make sure this function will always work.
1 call to date_api_views_fetch_fields()
- _date_api_fields in includes/
date_api_fields.inc - Identify all potential date/timestamp fields.
File
- ./
date_api.module, line 1879 - 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_api_views_fetch_fields($base, $type) {
if (!module_exists('views')) {
return array();
}
require_once './' . drupal_get_path('module', 'views') . '/includes/admin.inc';
return views_fetch_fields($base, $type);
}