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
Investigating the API file to determine if metatags can be altered for specific paths programmatically, I noticed that a function comment is in the wrong place.
Proposed resolution
Swap out the comment between 'view' and 'page_cid"
Remaining tasks
Review and assess the patch submitted by 'laughnan'
User interface changes
N/A
API changes
N/A - aside from API documentation.
Data model changes
N/A
Comment | File | Size | Author |
---|---|---|---|
#2 | metatag-api_documentation_fix-2569191-2-7.x-1.x.patch | 1.08 KB | laughnan |
Comments
Comment #2
laughnanHere's a patch to swap the function comments in the API file.
Comment #3
laughnanComment #4
laughnanComment #5
DamienMcKennaBut they're not swapped? The documentation given for hook_metatag_metatags_view_alter() is correct and it isn't appropriate for hook_metatag_page_cache_cid_parts_alter().
Comment #6
DamienMcKenna