function views_handler_field_file_link::options_form in File Entity (fieldable files) 7.3
Same name and namespace in other branches
- 7.2 views/views_handler_field_file_link.inc \views_handler_field_file_link::options_form()
Default options form provides the label widget that all fields should have.
Overrides views_handler_field::options_form
1 call to views_handler_field_file_link::options_form()
- views_handler_field_file_link_usage::options_form in views/
views_handler_field_file_link_usage.inc - Default options form provides the label widget that all fields should have.
1 method overrides views_handler_field_file_link::options_form()
- views_handler_field_file_link_usage::options_form in views/
views_handler_field_file_link_usage.inc - Default options form provides the label widget that all fields should have.
File
- views/
views_handler_field_file_link.inc, line 21 - Definition of views_handler_field_file_link.
Class
- views_handler_field_file_link
- Field handler to present a link to the file.
Code
function options_form(&$form, &$form_state) {
$form['text'] = array(
'#type' => 'textfield',
'#title' => t('Text to display'),
'#default_value' => $this->options['text'],
);
parent::options_form($form, $form_state);
// The path is set by render_link function so don't allow to set it.
$form['alter']['path'] = array(
'#access' => FALSE,
);
$form['alter']['external'] = array(
'#access' => FALSE,
);
}