You are here

function languagefield_field_schema in Custom Language field 7

Implements hook_field_schema().

File

./languagefield.install, line 11
Install file for Languagefield module.

Code

function languagefield_field_schema($field) {
  return array(
    'columns' => array(
      'value' => array(
        'type' => 'varchar',
        'length' => 12,
        'not null' => FALSE,
        'sortable' => TRUE,
        'views' => TRUE,
      ),
    ),
    'indexes' => array(
      'value' => array(
        'value',
      ),
    ),
  );
}