You are here

function date_api_database_info in Date 8

Same name and namespace in other branches
  1. 7.3 date_api/date_api.module \date_api_database_info()
  2. 7 date_api/date_api.module \date_api_database_info()
  3. 7.2 date_api/date_api.module \date_api_database_info()

Temporary helper to re-create equivalent of content_database_info().

1 call to date_api_database_info()
_date_views_fields in date_views/includes/date_views_fields.inc
Identify all potential date/timestamp fields.

File

date_api/date_api.module, line 440
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_database_info($field, $revision = FIELD_LOAD_CURRENT) {
  return array(
    'columns' => $field['storage']['details']['sql'][$revision],
    'table' => _field_sql_storage_tablename($field),
  );
}