function url_field_info in URL field 7
Same name and namespace in other branches
- 8 url.module \url_field_info()
Implements hook_field_info().
File
- ./
url.module, line 24 - Provides a URL field type that stores external links with optional titles.
Code
function url_field_info() {
$info['url'] = array(
'label' => t('URL'),
'description' => t('This field stores URLs with an optional title.'),
'instance_settings' => array(
'title_field' => 0,
'title_fetch' => 0,
),
'default_widget' => 'url_external',
'default_formatter' => 'url_default',
);
return $info;
}