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.
Redundant php open and close tags in Garland theme page templates php file.They should either be removed or appropriate documentation should be added to it.
Comment | File | Size | Author |
---|---|---|---|
#5 | drupal7-extra-php-tags-2868584-5.patch | 11.76 KB | cchoudhary |
#2 | drupal7-extra-php-tags-2868584-2.patch | 922 bytes | gaurav.kapoor |
Comments
Comment #2
gaurav.kapoor CreditAttribution: gaurav.kapoor at OpenSense Labs commentedComment #3
gaurav.kapoor CreditAttribution: gaurav.kapoor at OpenSense Labs commentedComment #4
Chi CreditAttribution: Chi commentedI propose instead of removing it we place file documentation within these tags. Just as it is done in Bartik's templates.
Comment #5
cchoudhary CreditAttribution: cchoudhary at ]init[ AG commentedHere is the patch, with file documentation(same as Bartik), instead of removing php tags.
Comment #6
cchoudhary CreditAttribution: cchoudhary at ]init[ AG commentedComment #7
poker10 CreditAttribution: poker10 at ActivIT s.r.o. commentedThanks for working on this!
Personally I think that the approach which adds the documentation is better (#5). However there seems to be some problems:
Garland theme does not define any regions in the .info file, so I suppose that only default regions will be available in the page.tpl.php (not all as in the Bartik theme) - see: https://www.drupal.org/docs/7/theming/default-info-values
Also I think it would be better to check the coding standards in the comments, as it seems to me that some comments are longer than 80 characters (see: https://www.drupal.org/node/1354).
Thanks!