You are here

function views_handler_field_alpha_pagination_group::options_form in Views Alpha Pagination 7.2

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

Overrides views_handler_field::options_form

File

src/views_handler_field_alpha_pagination_group.inc, line 37

Class

views_handler_field_alpha_pagination_group
A handler to provide a field that generates alpha pagination values.

Code

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

  // Since this is an automated field, hide all form elements.
  foreach (element_children($form) as $child) {

    // Allow the custom admin label since that's purely UI related.
    if ($child === 'more' || $child === 'ui_name') {
      continue;
    }
    $form[$child]['#access'] = FALSE;
  }
}