function field_collection_table_field_widget_settings_form in Field Collection Table 7
Implements hook_field_widget_settings_form().
File
- ./
field_collection_table.module, line 554 - Module implementing a field-collection table formatter.
Code
function field_collection_table_field_widget_settings_form($field, $instance) {
$widget = $instance['widget'];
$settings = $widget['settings'];
$form['nodragging'] = array(
'#type' => 'checkbox',
'#title' => t('Disable drag and drop'),
'#description' => t('If checked, users cannot rearrange the rows.'),
'#default_value' => $settings['nodragging'],
'#weight' => 2,
);
$form['hide_title'] = array(
'#type' => 'checkbox',
'#title' => t('Hide title'),
'#description' => t('If checked, the field title will be hidden.'),
'#default_value' => $settings['hide_title'],
'#weight' => 3,
);
return $form;
}