You are here

backgroundfield.install in BackgroundField 7

Same filename and directory in other branches
  1. 6 backgroundfield.install

File

backgroundfield.install
View source
<?php

/**
 * Implementation of hook_field_schema()
 */
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
}

// backgroundfield_field_schema()

Functions

Namesort descending Description
backgroundfield_field_schema Implementation of hook_field_schema()