You are here

function lightning_core_form_system_modules_alter in Lightning Core 8.4

Same name and namespace in other branches
  1. 8.5 lightning_core.module \lightning_core_form_system_modules_alter()
  2. 8.3 lightning_core.module \lightning_core_form_system_modules_alter()

Implements hook_form_FORM_ID_alter().

File

./lightning_core.module, line 233
Contains core functionality for the Lightning distribution.

Code

function lightning_core_form_system_modules_alter(array &$form) {

  // This rule prevents acquia_telemetry module's description from increasing
  // the page width.
  $css = "#edit-modules-acquia-telemetry-enable-description { white-space: normal; overflow: hidden; }";
  $form['#attached']['html_head'][] = [
    [
      '#tag' => 'style',
      '#value' => $css,
    ],
    'acquia-telemetry-css',
  ];
}