function date_api_database_info in Date 7.2
Same name and namespace in other branches
- 8 date_api/date_api.module \date_api_database_info()
- 7.3 date_api/date_api.module \date_api_database_info()
- 7 date_api/date_api.module \date_api_database_info()
Temporary helper to re-create equivalent of content_database_info().
2 calls to date_api_database_info()
- date_field_get_sql_handler in ./
date.module - Generates a Date API SQL handler for the given date field.
- _date_views_fields in date_views/
includes/ date_views_fields.inc - Identify all potential date/timestamp fields.
File
- date_api/
date_api.module, line 2837 - This module will make the date API available to other modules.
Code
function date_api_database_info($field, $revision = FIELD_LOAD_CURRENT) {
return array(
'columns' => $field['storage']['details']['sql'][$revision],
'table' => _field_sql_storage_tablename($field),
);
}