function url_field_widget_settings_form in URL field 8
Same name and namespace in other branches
- 7 url.module \url_field_widget_settings_form()
Implements hook_field_widget_settings_form().
File
- ./
url.module, line 125 - Provides a URL field type that stores external links with optional titles.
Code
function url_field_widget_settings_form($field, $instance) {
$widget = $instance['widget'];
$settings = $widget['settings'];
$form['size'] = array(
'#type' => 'number',
'#title' => t('Size of URL field'),
'#default_value' => $settings['size'],
'#required' => TRUE,
'#min' => 1,
'#weight' => -1,
);
return $form;
}