Updated: Comment #0
Problem/Motivation
The Views module pioneered the usage of the __ pattern for theme suggestions. This is a part of core since Drupal 7, and now views_theme() has unnecessary 'pattern' lines that redeclare the default pattern of $hook . '__'
. See #653622: Make the '__' pattern for theme suggestions easier to use for more background.
The default pattern can be seen in drupal_find_theme_templates() and drupal_find_theme_functions():
$pattern = isset($info['pattern']) ? $info['pattern'] : ($hook . '__');
Proposed resolution
Remove these lines.
Remaining tasks
Patch needs to be written.
User interface changes
n/a
API changes
n/a
Related Issues
None yet.
Comment | File | Size | Author |
---|---|---|---|
#2 | remove_pattern-2062315-2.patch | 1.3 KB | k4v |
Comments
Comment #1
star-szrRe-title to be actionable :)
Comment #2
k4v CreditAttribution: k4v commentedlike this?
Comment #3
k4v CreditAttribution: k4v commentedComment #4
dawehnerPerfect!
Comment #5
webchickYay, less code! :)
Committed and pushed to 8.x. Thanks!