You are here

function youtube_field_schema in YouTube Field 7

Implements hook_field_schema().

File

./youtube.install, line 11
Install, update, and uninstall functions for the youtube module.

Code

function youtube_field_schema($field) {
  $columns = array(
    'input' => array(
      'type' => 'varchar',
      'length' => 1024,
      'not null' => FALSE,
    ),
    'video_id' => array(
      'type' => 'varchar',
      'length' => 15,
      'not null' => FALSE,
    ),
  );
  $indexes = array(
    'video_id' => array(
      'video_id',
    ),
  );
  return array(
    'columns' => $columns,
    'indexes' => $indexes,
  );
}