1 views_handler_field_custom.inc views_handler_field_custom::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/views/handlers/views_handler_field_custom.inc, line 27
Definition of views_handler_field_custom.

Class

views_handler_field_custom
A handler to provide a field that is completely custom by the administrator.

Code

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

  // Remove the checkbox
  unset($form['alter']['alter_text']);
  unset($form['alter']['text']['#states']);
  unset($form['alter']['help']['#states']);
  $form['#pre_render'][] = 'views_handler_field_custom_pre_render_move_text';
}