You are here

function addthis_field_schema in AddThis 7.4

Implements hook_field_schema().

File

./addthis.install, line 13
Install, update and uninstall functions for the AddThis module.

Code

function addthis_field_schema($field) {
  $schema = array();
  if ($field['type'] == AddThis::FIELD_TYPE) {
    $columns = array(
      'value' => array(
        'type' => 'varchar',
        'length' => $field['settings']['max_length'],
        'not null' => FALSE,
      ),
    );
    $schema = array(
      'columns' => $columns,
      'indexes' => array(),
      'foreign keys' => array(),
    );
  }
  return $schema;
}