Skip to content
Snippets Groups Projects
Commit 6ee8dd1e authored by Akshay Singh's avatar Akshay Singh Committed by Rob Loach
Browse files

Issue #3374628: Fix the issues reported by phpcs

parent 02579e9a
No related branches found
No related tags found
1 merge request!1Issue #3374628: Fix the issues reported by phpcs
Pipeline #131872 passed with warnings
......@@ -2,23 +2,42 @@
Automatically adjust textarea height based on user input.
While CKEditor will automatically adjust the height of textareas, non-CKEditor textareas do not have this ability. This module adds that functionality to non-CKEditor textareas.
While CKEditor will automatically adjust the height of textareas,
non-CKEditor textareas do not have this ability. This module adds
that functionality to non-CKEditor textareas.
For a full description of the module, visit the [project page](https://www.drupal.org/project/autogrow_textarea).
For a full description of the module, visit the project page:
[project page](https://www.drupal.org/project/autogrow_textarea)
To submit bug reports and feature suggestions, or to track changes:
[issue queue](https://www.drupal.org/project/issues/autogrow_textarea)
## Table of contents
- Requirements
- Installation
- Configuration
- Maintainers
Submit bug reports and feature suggestions, or track changes in the [issue queue](https://www.drupal.org/project/issues/autogrow_textarea).
## Requirements
This module requires no modules outside of Drupal core.
## Installation
Install as you would normally install a contributed Drupal module. For further information, see [Installing Drupal Modules](https://www.drupal.org/docs/extending-drupal/installing-drupal-modules).
Install as you would normally install a contributed Drupal module. For further
information, see [Installing Drupal Modules](https://www.drupal.org/docs/extending-drupal/installing-drupal-modules).
## Configuration
The module has no menu or modifiable settings. There is no configuration. When enabled, the module will prevent the links from appearing. To get the links back, disable the module and clear caches.
The module has no menu or modifiable settings. There is no configuration. When
enabled, the module will prevent the links from appearing. To get the links
back, disable the module and clear caches.
## Maintainers
......
<?php
/**
* @file
* Hook implementations for the Autogrow Textarea module.
*/
/**
* Implements hook_element_info_alter().
*
* Adds autogrow_textarea.js as attached JavaScript to each textarea.
*/
function autogrow_textarea_element_info_alter(array &$info) {
// Change the way the textarea element is used.
if (isset($info['textarea'])) {
$library = 'autogrow_textarea/autogrow_textarea';
$info['textarea']['#attached']['library'][] = $library;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment