Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The template.php file has lots of inline code additions that should be moved to a separated file in order to be clean and easily maintainable.
Proposed resolution
- Move the tooltip code to a separated file called tooltip.js
- Update drupal_add_js to call a file instead of adding an inline code.
- Fix Drupal JavaScript coding standards issues.
@see https://drupal.org/node/172169 and https://drupal.org/node/1720586
Comment | File | Size | Author |
---|---|---|---|
#2 | simplecorp-move_tooltip_to_separated_file-2163089-1.patch | 9.69 KB | revagomes |
Comments
Comment #1
revagomes CreditAttribution: revagomes commentedComment #2
revagomes CreditAttribution: revagomes commentedHere goes the patch.
Comment #3
revagomes CreditAttribution: revagomes commented