You are here

function data_get_field_definition in Data 7

Same name and namespace in other branches
  1. 8 data.module \data_get_field_definition()
  2. 6 data.module \data_get_field_definition()

Get a definition key into a schema API type definition.

If no type can be found, FALSE will be returned.

1 call to data_get_field_definition()
data_build_schema in ./data.module
Helper function to generate a schema.

File

./data.module, line 170
Hooks and API functions for data module.

Code

function data_get_field_definition($key) {
  $definitions = data_get_field_definitions();
  if (isset($definitions[$key])) {
    return $definitions[$key];
  }
  return FALSE;
}