You are here

function data_get_field_sizes in Data 8

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

Get schema API field sizes.

1 call to data_get_field_sizes()
TableConfigForm::fieldForm in src/Form/TableConfigForm.php
Helper function that generates a form snippet for defining a field.

File

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

Code

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