You are here

function hook_data_field_definitions_alter in Data 7

Same name and namespace in other branches
  1. 8 data.api.php \hook_data_field_definitions_alter()

Declare additional field types for use with data module.

See also

data_get_field_definitions()

1 invocation of hook_data_field_definitions_alter()
data_get_field_definitions in ./data.module
Get a list of supported field definitions.

File

./data.api.php, line 94
Documentation of hooks.

Code

function hook_data_field_definitions_alter(&$data_types) {
  $data_types['timestamp'] = array(
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => FALSE,
  );
}