link.install

Contains install, update, and uninstall functionality for the Link module.

File

drupal/core/modules/field/modules/link/link.install
View source
<?php

/**
 * @file
 * Contains install, update, and uninstall functionality for the Link module.
 */

/**
 * Implements hook_field_schema().
 */
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;
}

Functions

Namesort descending Description
link_field_schema Implements hook_field_schema().