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 comment for the function title_field_views_data_alter()
(an implementation of hook_field_views_data_alter()
tells that it's an implementation for a different hook hook_views_data_alter()
.
* Implements hook_views_data_alter().
And the function signature may be wrong.
(This fix doesn't change any behaviour.)
Proposed resolution
Fix the comment and the function signature.
Remaining tasks
- Create a patch.
- Review the patch.
User interface changes
None.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#2 | title-fix_comment_for_hook_function_for_views-2827746-2.patch | 1.16 KB | hgoto |
Comments
Comment #2
hgoto CreditAttribution: hgoto as a volunteer commentedHere is a patch. I'd like someone to review this. Thank you.
Comment #3
PolThis patch makes senses.
Comment #4
alex_optim+1
Comment #6
PolThanks!
Comment #7
hgoto CreditAttribution: hgoto as a volunteer commentedThanks!