You are here

function button_field_field_schema in Button Field 7

Implements hook_field_schema().

File

./button_field.module, line 91
Defines a field, widget and formatter for the button field type.

Code

function button_field_field_schema($field) {
  return array(
    'columns' => array(
      'value' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
    ),
    'indexes' => array(
      'value' => array(
        'value',
      ),
    ),
  );
}