function tablefield_field_settings_form in TableField 7
Same name and namespace in other branches
- 7.3 tablefield.module \tablefield_field_settings_form()
- 7.2 tablefield.module \tablefield_field_settings_form()
Implements hook_field_settings_form().
File
- ./
tablefield.module, line 31 - This module provides a set of fields that can be used to store tabular data with a node. The implementation uses a custom CCK widget.
Code
function tablefield_field_settings_form($field, $instance, $has_data) {
$form = array();
$form['lock_values'] = array(
'#type' => 'checkbox',
'#title' => 'Lock table field defaults from further edits during node add/edit.',
'#default_value' => isset($field['settings']['lock_values']) ? $field['settings']['lock_values'] : FALSE,
);
$form['cell_processing'] = array(
'#type' => 'radios',
'#title' => t('Table cell processing'),
'#default_value' => isset($field['settings']['cell_processing']) ? $field['settings']['cell_processing'] : 0,
'#options' => array(
t('Plain text'),
t('Filtered text (user selects input format)'),
),
);
$form['default_message'] = array(
'#type' => 'markup',
'#value' => t('To specify a default table, use the "Default Value" above. There you can specify a default number of rows/columns and values.'),
);
return $form;
}