1 link.module | link_field_info() |
Implements hook_field_info().
File
- core/
modules/ link/ link.module, line 27 - 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' => array(
'target' => LINK_TARGET_DEFAULT,
'class' => '',
'configurable_class' => 0,
'rel' => '',
'title' => '',
'configurable_title' => 0,
),
'url' => 0,
'type' => LINK_BOTH,
'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',
),
);
}