1 views_handler_field_file_link_delete.inc views_handler_field_file_link_delete::options_form(&$form, &$form_state)

Default options form that provides the label widget that all fields should have.

Overrides views_handler_field::options_form

File

core/modules/file/views/views_handler_field_file_link_delete.inc, line 20
Definition of views_handler_field_file_link_delete.

Class

views_handler_field_file_link_delete
Field handler to present a link to delete a 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);
}