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
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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'] = [