You are here

function vud_field_field_schema in Vote Up/Down 7

Same name and namespace in other branches
  1. 7.2 vud_field/vud_field.install \vud_field_field_schema()

Implements hook_field_schema().

File

vud_field/vud_field.install, line 10
Install file for the vud_field module.

Code

function vud_field_field_schema($field) {
  return array(
    'columns' => array(
      'vud_widget' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => FALSE,
        'sortable' => TRUE,
      ),
      'votingapi_tag' => array(
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
        'default' => 'vote',
      ),
    ),
  );
}