function hms_field_field_instance_settings_form in HMS Field 7
Implements hook_field_instance_settings_form().
File
- ./
hms_field.module, line 60 - Provides an hms_field functionality.
Code
function hms_field_field_instance_settings_form($field, $instance) {
return array(
'format' => array(
'#type' => 'select',
'#title' => t('Input format'),
'#default_value' => $instance['settings']['format'],
'#options' => _hms_format_options(),
'#description' => t('The input format used for this field. Decimal number can be used separated with dot (e.g. 0,25 = 15 minutes)'),
),
'default_description' => array(
'#type' => 'checkbox',
'#title' => t('Default help text'),
'#default_value' => $instance['settings']['default_description'],
'#description' => t('Provide a default help text about the format. (Only when you leave the help text empty.)'),
),
);
}