You are here

url.install in URL field 8

Same filename and directory in other branches
  1. 7 url.install

File

url.install
View source
<?php

/**
 * Implements hook_field_schema().
 */
function url_field_schema($field) {
  $schema['columns']['value'] = array(
    'description' => 'The URL string.',
    'type' => 'text',
    'size' => 'big',
    'not null' => FALSE,
  );
  $schema['columns']['title'] = array(
    'description' => 'The title of the URL.',
    'type' => 'varchar',
    'length' => 1024,
    'not null' => FALSE,
  );
  $schema['columns']['attributes'] = array(
    'description' => 'The serialized array of attributes for the URL.',
    'type' => 'blob',
    'size' => 'big',
    'not null' => FALSE,
    'serialize' => TRUE,
  );
  return $schema;
}

Functions

Namesort descending Description
url_field_schema Implements hook_field_schema().