function isbn_field_widget_settings_form in ISBN Field 7
Implements hook_field_widget_settings_form().
File
- ./
isbn.module, line 113 - Maintains a consistant relationship between nodes and ISBNs.
Code
function isbn_field_widget_settings_form($field, $instance) {
$widget = $instance['widget'];
$settings = $widget['settings'];
$form['size'] = array(
'#type' => 'textfield',
'#title' => t('Size of textfield'),
'#default_value' => $settings['size'],
'#required' => TRUE,
'#element_validate' => array(
'_element_validate_integer_positive',
),
);
return $form;
}