Skip to content
Snippets Groups Projects
Commit bde93b26 authored by Andrii Chyrskyi's avatar Andrii Chyrskyi
Browse files

Merge pull request #2938 from goalgorilla/bugfix/3281476-unnecessary-path-alias-field

Issue #3281476 by alex.ksis: Hide path alias field from the approve membership form.
parent ec73fdbc
No related branches found
No related tags found
No related merge requests found
......@@ -797,6 +797,9 @@ function social_group_form_alter(&$form, FormStateInterface $form_state, $form_i
// Perform alterations on joining / leaving groups.
if (in_array($form_id, $action_forms)) {
if (isset($form['path'])) {
$form['path']['#access'] = FALSE;
}
// Add cancel option on join and leave form.
$form['actions']['cancel'] = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment