function link_field_schema

Implements hook_field_schema().

File

drupal/core/modules/field/modules/link/link.install, line 11
Contains install, update, and uninstall functionality for the Link module.

Code

function link_field_schema($field) {
  $schema['columns']['url'] = array(
    'description' => 'The URL of the link.',
    'type' => 'varchar',
    'length' => 2048,
    'not null' => FALSE,
  );
  $schema['columns']['title'] = array(
    'description' => 'The link text.',
    'type' => 'varchar',
    'length' => 255,
    'not null' => FALSE,
  );
  $schema['columns']['attributes'] = array(
    'description' => 'Serialized array of attributes for the link.',
    'type' => 'blob',
    'size' => 'big',
    'not null' => FALSE,
    'serialize' => TRUE,
  );
  return $schema;
}