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

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

Overrides views_handler_field_links::options_form

File

core/modules/views/handlers/views_handler_field_contextual_links.inc, line 13
Definition of views_handler_field_contextual_links.

Class

views_handler_field_contextual_links
Provides a handler that adds contextual links.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);

  // Hide fields that do not apply to contextual links.
  $form['custom_label']['#access'] = FALSE;
  $form['label']['#default_value'] = '';
  $form['label']['#access'] = FALSE;
  $form['element_label_colon']['#access'] = FALSE;
  $form['empty_field_behavior']['#access'] = FALSE;
}