You are here

function data_get_field_sizes in Data 6

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

Get schema API field sizes.

2 calls to data_get_field_sizes()
data_ui_edit_form in data_ui/data_ui.admin.inc
Form callback for editing a table.
_data_ui_field_form in data_ui/data_ui.admin.inc
Helper function that generates a form snippet for defining a field.

File

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

Code

function data_get_field_sizes() {
  $sizes = array(
    'normal',
    'tiny',
    'small',
    'medium',
    'big',
  );
  return drupal_map_assoc($sizes);
}