function form_test_form_form_test_vertical_tabs_access_form_alter
Same name in other branches
- 9 core/modules/system/tests/modules/form_test/form_test.module \form_test_form_form_test_vertical_tabs_access_form_alter()
- 10 core/modules/system/tests/modules/form_test/form_test.module \form_test_form_form_test_vertical_tabs_access_form_alter()
- 11.x 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
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.