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.
I've created a streamlined 7.x-2.x branch. This new branch:
- Uses the new async tracking code, and provides a template so you can change it if you like.
- Gets rid of huge piles of crappy non functional code which I imagine were left over from a hasty port to D7.
- Makes use of tools available in D7 like renderable arrays to reduce the amount of code required and provide more flexibility.
- Removes the extra code for the affiliate blocks, it's easy enough to add yourself, I don't think this module should add the cruft.
git diff --stat 7.x-1.x 7.x-2.x
3 files changed, 111 insertions(+), 194 deletions(-)
I've attached it as a patch and a tar.gz.
Comment | File | Size | Author |
---|---|---|---|
#1 | getclicky-7x-2x.patch | 227 bytes | aidanlis |
#1 | getclicky-7x-2x.tgz | 89.44 KB | aidanlis |
getclicky-7x-2x.patch | 15.08 KB | aidanlis | |
getclicky7x-2x.tar_.gz | 88.01 KB | aidanlis |
Comments
Comment #1
aidanlis CreditAttribution: aidanlis commentedSlight tweak attached. Also the .tgz has a .git repository in it, so if you're going to commit please merge that in.
Comment #2
ctrnz CreditAttribution: ctrnz commentedI just wanted to say: thank You very much for this branch!
Comment #3
rsvelko CreditAttribution: rsvelko commentedwill be looked into right away and commited asap!
Comment #5
rsvelko CreditAttribution: rsvelko commentedlist of commits in this new 2.x repo:
1 47edf65 Mistakenly used "arguments" instead of "variables" in hook_theme.
2 3f2a7b7 Remove the long winded description and affiliate link from configuration page -- there's no original code left after this rewrite so I think it's fair to remov
3 df8baae Rewrite to use a renderable array, with the access check done in #access. Move the actual JS code into a tpl.php for easy customisation and add hook_theme acco
4 7cd0dc7 Clean up the admin page -- reshuffle the options around and get rid of the cruft.
5 8d28125 Strip out the banner code. If people want to add a banner, they can create a block themselves, I don't think this module provides any benefit by proving this i
6 6899cfb Add a description for the username tracking
7 23d4140 Remove unused $roles query
I've commited last one 23d4140 to 7.x-1.x
Comment #7
rsvelko CreditAttribution: rsvelko commentedcommitted this one also:
- 6 6899cfb Add a description for the username tracking
Comment #9
rsvelko CreditAttribution: rsvelko commentedSummary of commits :
1 ec34e79 Issue #1978320 by aidanlis, rsvelko: Streamlined 7.x-2.x branch: Tweak the admin page to be less dependent on garland.
2 2cbc7bc Issue #1978320 by aidanlis, rsvelko: Streamlined 7.x-2.x branch - 6899cfb Add a description for the username tracking
3 8a28892 Issue #1978320 by aidanlis, rsvelko: Streamlined 7.x-2.x branch - Remove-unused-roles-query
The rest not used are just code rewrites to "unsuck" the code which need thorough testing and some parts could be commited after I find the time. Nothing functionally critical to the module functionality.
Comment #10
rsvelko CreditAttribution: rsvelko commentedComment #11
rsvelko CreditAttribution: rsvelko commentedSo this could be postponed for long.... For now there is no real need for a whole new 2.x branch.
Comment #12
rsvelko CreditAttribution: rsvelko commentednote: I used some code proposed here in the 1.x branch - see commit ec34e79
Comment #13
rsvelko CreditAttribution: rsvelko commentedhaving a 2nd pass over the patch I could see some more code chunks that will be useful.
I will add things like the new async tracking code as an option and unsuck the code a bit more.
Comment #14
rsvelko CreditAttribution: rsvelko commentedin retrospective: although a proper 2.x branch never took off, ALL the worthy changes made in 7.x-2.x so far, were long ago backported to 1.x.
Closing this old issue now.