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.
Drupal 7.x will be released sooner or later. It would be interested to check for the possibility of have it functioning for Drupal 7.x
Comment | File | Size | Author |
---|---|---|---|
#18 | relatedlinks_v5_d6_to_d7.patch | 47.97 KB | joebachana |
#17 | relatedlinks_v4_d6_to_d7.patch | 47.98 KB | joebachana |
#15 | upgrade2d7-720660-15.patch | 48 KB | mgifford |
#12 | relatedlinks_v3_d6_to_d7.patch | 46.13 KB | joebachana |
#9 | relatedlinks_v2_d6_to_d7.patch | 33.44 KB | joebachana |
Comments
Comment #1
Zen CreditAttribution: Zen commentedThis is on the cards.
Comment #2
mattab CreditAttribution: mattab commentedHello, is there any update on the Drupal 7 port of this useful module? thx
Comment #3
mgiffordGreat. Look forward to seeing this module.
Comment #4
noahadler CreditAttribution: noahadler commentedReally interested in this. Subscribing.
Comment #5
davidbarbarisi@gmail.com CreditAttribution: davidbarbarisi@gmail.com commentedsubscribe.
Comment #6
joebachana CreditAttribution: joebachana commentedWe've got time to work on this during this week. Let me know and we'll post an update for testing this week.
Comment #7
joebachana CreditAttribution: joebachana commentedHere's the patch for Related links D6--> D7. Let me know how this works out
Comment #8
Zen CreditAttribution: Zen commentedHi Joe,
Thanks for the patch! However, it fails to apply on my end for the .module and .info files. This is both with Eclipse and the CLI.
Visual review:
Please reroll and resubmit at your convenience.
Cheers,
-K
Comment #9
joebachana CreditAttribution: joebachana commentedHi Karthik,
Tested w/ Eclipse and Command Line. Sorry for the prior noob errors and any that might happen in advance ;-) we'll get to the upgrade sooner than later, -J
Comment #10
Zen CreditAttribution: Zen commentedHello Joe :)
Thanks for the updated patch. I have taken the liberty of being nit-picky with my review since you are keen on getting things done just right :) This is primarily a visual review with some basic testing to see if forms etc. are working.
The above block should be indented relative to $output rather than theme(). This applies everywhere. Please also avoid unnecessary indentation and breaking up simple statements into multiple lines.
<>
with!=
in SQL statements is not kosher.if (true)
check?Please also run the patched module through coder to ensure that there are no non-formatting issues that need to be taken care of.
I will stop here for now. I will test functionality in the next go-around.
Many thanks for your efforts,
-K
Comment #11
Zen CreditAttribution: Zen commentedComment #12
joebachana CreditAttribution: joebachana commentedZen,
A few points:
Function db_rewrite_sql did not exist in Drupal7 so we are using db_select function and we can use hook_query_alter to alter query created by db_select.
- Object in _relatedlinks_filter() isn’t a new feature. $links variable can be array or object. That’s why we need to check it first.
- We were able to apply the patch for all files. We didn’t have any problem with .info file. Patch was tested using Git command line and Eclipse.
- We ran Coder for this module but we fixed formatting issues only in new code. We didn’t fix any formatting bugs in existing code.
Comment #13
mgifford@jbachana does this patch give a functioning module? Is it good enough (in your opinion) for a dev release for consideration?
@Zen how do you think we should move this closer to release?
Comment #14
joebachana CreditAttribution: joebachana commented@mgifford, as this is the first time my team and I are starting to help upgrade D6 to D7 modules on d.o, I would feel most comfortable having Zen approve the work first. We've been successful using the module in our own test environment but this is Zen's module and so he really should approve the patch before it gets committed. Thanks, -J
Comment #15
mgiffordI ran this all through coder and cleaned up the trivial pieces it revealed. I ran the patch against Git & have recomplied it based on Git.
I got these errors:
Fatal error: Cannot use object of type stdClass as array in:
Going here produced unexpected results - /relatedlinks/autocomplete
I think this is how you add links manually, but I couldn't see how to do that.
The Similar links block seems to work as expected, but not sure how to generate the other two.
I made slight changes to the README & other files.
Comment #16
Zen CreditAttribution: Zen commentedI used mgifford's patch for testing and my notes are further below.
@mgifford: Thanks for jumping in as well! FYI, Joe is holding off on fixing D7 (Coder) formatting warnings until after the upgrade patch has gone through in order to simplify reviews.
@jbachana: Please incorporate mgifford's changes in any updates. If you can avoid merging any unrelated formatting changes, that will be ideal.
relatedlinks.info:
relatedlinks.module
<a href="/foo">Bar</a>
correctly.relatedlinks.js
Cheers,
-K
Comment #17
joebachana CreditAttribution: joebachana commentedK,
Here is the update but without the changes from mgifford patch.
-J
Comment #18
joebachana CreditAttribution: joebachana commentedahh, disregard the prior patch, please inspect this one instead. Let me know, thanks! -J
Comment #19
mgiffordCan you incorporate the patch I produced or are you waiting for me to do this? I'm not sure when to get to this but want to know if this is waiting for me or not.
Comment #20
joebachana CreditAttribution: joebachana commentedmgifford I think I missed Zen's note to incorporate your changes - would you like to take mine and do the merge for Zen? I'm out of the office this week so I wouldn't be able to get to it until next week anyway, let me know either way. -J
Comment #21
mgiffordI can wait till next week for you to incorporate the changes. I can then focus on reviewing it so we can get a bit closer to a release. Thanks!
Comment #22
Zen CreditAttribution: Zen commentedHi,
I believe that the patch is good enough for a commit and have gone ahead and done so. Thanks for sticking with this :) I have created a -dev release for the time being. Please test and report any issues.
Do either of you have any immediate plans to add new features/fixes to this module? I believe that things like node_access etc. have been currently introduced as a stop-gap solution. I'd prefer to know your status prior to deciding how to proceed with a release.
Regards,
-K
Comment #23
joebachana CreditAttribution: joebachana commentedI can probably dedicate some time to helping out. One thing I was thinking about was that if we're going to divvy up some of the work we might just get more specific about what we'll be working on (mgifford and I). Give me a day or two to think about what functionality we might add, I'm sure you two will have ideas as well. Then, we can create a roadmap for the module and divvy up the work :-)
-J
Comment #24
joebachana CreditAttribution: joebachana commentedahh, Zen did you incorporate mgifford's patch that he produced, since this was not done yet while I was on vacation?
Comment #25
Zen CreditAttribution: Zen commentedI manually added in the URL change that mgifford introduced for the configuration pages. I believe the rest were Coder recommendations and I took care of them separately. If I missed anything, please let me know.
-K
Comment #26
mgiffordThanks Zen. I still don't see the release available from the main page. Is it only available through git?
Comment #27
Zen CreditAttribution: Zen commentedThe dev snapshot should be visible now.
Cheers,
-K
Comment #28
mgiffordI got this error when installing it:
Fatal error: Call to undefined function _relatedlinks_isenabled_nodetype() in /DRUPAL7/sites/all/modules/contrib/relatedlinks/relatedlinks.module on line 280
That is defined in relatedlinks.module: if (_relatedlinks_isenabled_nodetype($node)) {
After that it worked fine. Pulled down nicely with drush.
Comment #29
Zen CreditAttribution: Zen commentedThanks mgifford. Fatal error fixed.
-K
Comment #30
annikaC CreditAttribution: annikaC commentedThanks so much for this great module.
Works great, but I am getting an error when I load chosen content types.
Notice: Trying to get property of non-object in _relatedlinks_update_discovered_links() (line 651 of /home/uitv/html/sites/all/modules/relatedlinks/relatedlinks.module).
This only happens on first load of the page, after which everything is fine.
Comment #31
furamag CreditAttribution: furamag commentedannikaC, what version of Drupal7 are you using? I can't reproduce this error.
Comment #32
annikaC CreditAttribution: annikaC commented7.4 currently, but will be doing the 7.7 update later today...
Edit: 7.7, fixed. (Probably a caching issue.)