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.
Happy New Year!
I needed to extend this module and while working with it I noticed that there are certain enhancements that could be easily done.
Attached patch has the following:
- Code formatting according to Drupal standards.
- Stores module path in a separate variable instead of calling drupal_get_path()
twice
Thanks!
Comment | File | Size | Author |
---|---|---|---|
#2 | formatting-2401459-2.patch | 6.93 KB | aramboyajyan |
#1 | formatting-2401459-1.patch | 6.5 KB | aramboyajyan |
Comments
Comment #1
aramboyajyan CreditAttribution: aramboyajyan commentedComment #2
aramboyajyan CreditAttribution: aramboyajyan commentedOptimizing another instance in
.module
file, wheredrupal_get_path()
was called twice.Attached is the updated patch.