You are here

function mediafront_field_schema in MediaFront 7

Implements hook_field_schema().

File

includes/mediafront.field.inc, line 26

Code

function mediafront_field_schema($field) {
  return array(
    'columns' => array(
      'fid' => array(
        'description' => 'The file field being referenced.',
        'type' => 'int',
        'not null' => FALSE,
        'unsigned' => TRUE,
      ),
      'name' => array(
        'description' => "The name of the file field.",
        'type' => 'varchar',
        'length' => 128,
        'not null' => FALSE,
      ),
    ),
    'indexes' => array(
      'fid' => array(
        'fid',
      ),
    ),
  );
}