This still announces us as version 2. Nothing appears to be broken by it, but we should still follow what the API docs say: http://drupalcontrib.org/api/drupal/contributions!views!views.api.php/fu...
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 1698146-update-hook-views-api-to-version-3-9.patch | 316 bytes | bartmcpherson |
| #7 | 1698146-update-hook-views-api-to-version-3-7.patch | 516 bytes | bartmcpherson |
| #5 | 1698146-update-hook-views-api-to-version-3-4.patch | 308 bytes | bartmcpherson |
| #2 | 1698146-update-hook-views-api-to-version-3-2.patch | 570 bytes | bartmcpherson |
Comments
Comment #1
joachim commentedTagging.
Comment #2
bartmcphersonMy first attempt at creating a patch.
Comment #3
joachim commentedThat's a pretty good attempt! Unfortunately, you've got the flag and the views api mixed up:
That bit's the flag API. That doesn't need to change (not right now at least).
Hence you should use a hardcoded number here. Probably 3.0 rather than 3, but check what Views itself declares.
Comment #5
bartmcphersonAh! Thanks for the follow up. I think I get it now.
I verified that views.api.php uses 3 and not 3.0
Comment #6
joachim commentedThat'll be Views documentation that's inaccurate, sorry....
It's actually 3.0 in the code. It's possible it doesn't matter, but I'd rather we err on the side of caution :)
Bumping version (ours, that is!) to 3.x too.
Comment #7
bartmcphersonThank you so much for taking the time and having patience with me while completing this. I know it should have been an open and shut change.
Updated Flags API version to 3.
Updated Views API version to 3.0.
Comment #8
joachim commented> Updated Flags API version to 3.
No, not that bit! Just the views api bit :)
And you're welcome. We're all beginners once and we all have to start somewhere.
Comment #9
bartmcphersonHopefully the final version of the patch for this issue.
Updated module to specify views api version 3.0.
Comment #10
joachim commentedPerfect!
Thanks for working on this :)
Committed and pushed:
Issue #1698146 by bartmcpherson: Fixed hook_views_api() version.
Comment #11
joachim commentedCherry-picked to 7.x-2.x too.