function link_field_schema in Link 7
Implements hook_field_schema().
File
- ./
link.install, line 45 - Install file for the link module.
Code
function link_field_schema($field) {
return array(
'columns' => array(
'url' => array(
'type' => 'varchar',
// Maximum URLs length.
'length' => 2048,
'not null' => FALSE,
'sortable' => TRUE,
),
'title' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'sortable' => TRUE,
),
'attributes' => array(
'type' => 'text',
'size' => 'medium',
'not null' => FALSE,
),
),
);
}