function content_access_form_alter in Content Access 8
Same name and namespace in other branches
- 6 content_access.module \content_access_form_alter()
- 7 content_access.module \content_access_form_alter()
Implements hook_form_alter().
File
- ./
content_access.module, line 679 - Content access module file.
Code
function content_access_form_alter(&$form, FormStateInterface $form_state, $form_id) {
if ($form_id == 'user_admin_perm') {
$build_info = $form_state
->getBuildInfo();
$build_info['files'][] = [
'module' => 'content_access',
'type' => 'inc',
'name' => 'content_access.admin',
];
$form_state
->setBuildInfo($build_info);
$form['actions']['submit']['#submit'][] = 'content_access_user_admin_perm_submit';
}
}