Same name and namespace in other branches
  1. 8.9.x core/modules/system/tests/modules/form_test/form_test.module \form_test_form_form_test_vertical_tabs_access_form_alter()
  2. 9 core/modules/system/tests/modules/form_test/form_test.module \form_test_form_form_test_vertical_tabs_access_form_alter()

Implements hook_form_FORM_ID_alter() for form_test_vertical_tabs_access_form().

File

core/modules/system/tests/modules/form_test/form_test.module, line 100
Helper module for the form API tests.

Code

function form_test_form_form_test_vertical_tabs_access_form_alter(&$form, &$form_state, $form_id) {
  $form['vertical_tabs1']['#access'] = FALSE;
  $form['vertical_tabs2']['#access'] = FALSE;
  $form['tabs3']['#access'] = TRUE;
  $form['fieldset1']['#access'] = FALSE;
  $form['container']['#access'] = FALSE;
}