function filefield_handler_field_data::options_form in FileField 6.3
File
- views/
filefield_handler_field_data.inc, line 17 - filefield_handler_field_data.inc
Class
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$options = array();
$info = filefield_data_info();
foreach ($info as $key => $data) {
$options[$key] = $data['title'] . ' (' . $data['module'] . ')';
}
$form['data_key'] = array(
'#title' => t('Data key'),
'#type' => 'radios',
'#options' => $options,
'#required' => TRUE,
'#default_value' => $this->options['data_key'],
'#description' => t('The data column may contain only a few or none any of these data options. The name of the module that provides the data is shown in parentheses.'),
'#weight' => 4,
);
}