You are here

function backgroundfield_field_schema in BackgroundField 7

Implementation of hook_field_schema()

File

./backgroundfield.install, line 6

Code

function backgroundfield_field_schema($field) {
  if ($field['type'] == 'backgroundfield') {
    return array(
      'columns' => array(
        'fid' => array(
          'type' => 'int',
          'unsigned' => TRUE,
          'not null' => TRUE,
        ),
      ),
      'foreign keys' => array(
        'file_managed' => array(
          'table' => 'file_managed',
          'columns' => array(
            'fid' => 'fid',
          ),
        ),
      ),
    );
  }

  // if backgroundfield
}