1.20.x link.module | link_field_info() |
Implements hook_field_info().
File
- modules/
link/ link.module, line 26 - Defines simple link field types.
Code
function link_field_info() {
return array(
'link_field' => array(
'label' => t('Link'),
'description' => t('Store a title, href, and attributes in the database to assemble a link.'),
'instance_settings' => array(
'attributes' => _link_default_attributes(),
'url' => 0,
'title' => 'optional',
'title_value' => '',
'title_label_use_field_label' => FALSE,
'title_maxlength' => 128,
'enable_tokens' => 0,
'display' => array(
'url_cutoff' => 80,
),
'rel_remove' => 'default',
'validate_url' => 1,
),
'default_widget' => 'link_field',
'default_formatter' => 'link_default',
),
);
}