function url_field_instance_settings_form in URL field 7
Same name and namespace in other branches
- 8 url.module \url_field_instance_settings_form()
Implements hook_field_instance_settings_form().
File
- ./
url.module, line 42 - Provides a URL field type that stores external links with optional titles.
Code
function url_field_instance_settings_form($field, $instance) {
$settings = $instance['settings'];
$form['title_field'] = array(
'#type' => 'checkbox',
'#title' => t('Enable <em>Title</em> field'),
'#default_value' => $settings['title_field'],
'#description' => t('The title attribute is displayed when the link is displayed.'),
);
$form['title_fetch'] = array(
'#type' => 'checkbox',
'#title' => t('Attempt to fetch the title value from the URL if the <em>Title field</em> is empty.'),
'#default_value' => $settings['title_fetch'],
);
return $form;
}