function url_field_schema in URL field 8
Same name and namespace in other branches
- 7 url.install \url_field_schema()
Implements hook_field_schema().
File
- ./
url.install, line 6
Code
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;
}