You are here

errorlevelpermission.module in Error Level Permission 8

Same filename and directory in other branches
  1. 7 errorlevelpermission.module

File

errorlevelpermission.module
View source
<?php

use Drupal\Core\Form\FormStateInterface;

/**
 * Implements hook_form_FORM_ID_alter() for system_logging_settings().
 */
function errorlevelpermission_form_system_logging_settings_alter(&$form, FormStateInterface $form_state, $form_id) {
  $form['error_level'] = [
    '#type' => 'item',
    '#title' => t('Error messages to display'),
    '#description' => t('Error Level Permission module took this over with <a href="@link">its permissions</a>.', [
      '@link' => \Drupal\Core\Url::fromRoute('user.admin_permissions', [], [
        'fragment' => 'module-errorlevelpermission',
      ])
        ->toString(),
    ]),
  ];
}

Functions

Namesort descending Description
errorlevelpermission_form_system_logging_settings_alter Implements hook_form_FORM_ID_alter() for system_logging_settings().