You are here

public function views_handler_field_custom::options_form in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 handlers/views_handler_field_custom.inc \views_handler_field_custom::options_form()
  2. 6.2 handlers/views_handler_field_custom.inc \views_handler_field_custom::options_form()

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

Overrides views_handler_field::options_form

File

handlers/views_handler_field_custom.inc, line 37
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

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

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