You are here

function private_content_form_node_form_alter in Private content 8.2

Implements hook_form_BASE_FORM_ID_alter() for \Drupal\node\NodeForm.

File

./private_content.module, line 159
A tremendously simple access control module -- it allows users to mark individual nodes as private; users with 'access private content' perms can read these nodes, while others cannot.

Code

function private_content_form_node_form_alter(&$form, FormStateInterface &$form_state) {
  if (isset($form['private'])) {
    $form['private']['#group'] = 'options';
  }
}