function makemeeting_field_widget_settings_form in Make Meeting Scheduler 7.2
Implements hook_field_widget_settings_form().
File
- ./
makemeeting.field.inc, line 40 - This file is mostly about the field configuration.
Code
function makemeeting_field_widget_settings_form($field, $instance) {
$widget = $instance['widget'];
$settings = $widget['settings'];
$form = array();
if ($widget['type'] == 'makemeeting_choices') {
$form['size'] = array(
'#type' => 'textfield',
'#title' => t('Number of dates'),
'#default_value' => isset($settings['size']) ? $settings['size'] : 1,
'#element_validate' => array(
'element_validate_integer',
),
'#required' => TRUE,
'#size' => 5,
'#description' => t('Default number of date choices to display. Must be positive or equal to 0.'),
);
}
return $form;
}