function tripal_views_handler_filter_file_upload::value_form
2.x tripal_views_handler_filter_file_upload.inc | tripal_views_handler_filter_file_upload::value_form(&$form, &$form_state) |
3.x tripal_views_handler_filter_file_upload.inc | tripal_views_handler_filter_file_upload::value_form(&$form, &$form_state) |
1.x tripal_views_handler_filter_file_upload.inc | tripal_views_handler_filter_file_upload::value_form(&$form, &$form_state) |
Options form subform for setting options.
This should be overridden by all child classes and it must define $form['value']
Overrides views_handler_filter::value_form
See also
options_form()
1 call to tripal_views_handler_filter_file_upload::value_form()
- tripal_views_handler_filter_file_upload::exposed_form in tripal_views/
views/ handlers/ tripal_views_handler_filter_file_upload.inc - Render our chunk of the exposed filter form when selecting
File
- tripal_views/
views/ handlers/ tripal_views_handler_filter_file_upload.inc, line 18 - Contains tripal_views_handler_filter_file_upload filter handler
Class
- tripal_views_handler_filter_file_upload
- This Handler provides a file upload field by extending the views_handler_filter object.
Code
function value_form(&$form, &$form_state) {
parent::value_form($form, $form_state);
$this->value_form = array(
'#type' => 'file_upload_combo',
'#title' => t('%label', array('%label' => $this->options['expose']['label'])),
'#default_value' => $this->value,
'#multiple' => FALSE,
'#description' => t('Provide search values for %label. Please place each search
item on a separate line or separated by commas.', array('%label' => $this->options['expose']['label'])),
);
$form['value'] = &$this->value_form;
}