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.
Aside from minor coding style issues, my main motivation for this patch is to fix $context = NULL as a first argument when $conf is not defined with a default value, so since the second arg is not optional, the first cannot either, I think.
Comment | File | Size | Author |
---|---|---|---|
ctools_relationships.patch | 7.17 KB | markus_petrux |
Comments
Comment #1
markus_petrux CreditAttribution: markus_petrux commentedThis $context = NULL pattern is being replicated in content relationships implemented elsewhere, and I would fix those in CCK as soon as you can confirm the patch here is correct, as I'm in doubt if the args are really mandatory.
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedYeah, must be a leftover from all the changes that this poor system has been put through. Thanks!
Comment #3
markus_petrux CreditAttribution: markus_petrux commentedSweet.
Also fixed these in CCK node/user relationships. I used this issue for the CHANGELOG entry in CCK branches 6.x-2.x and 6.x-3.x.
For reference:
http://drupal.org/cvs?commit=240196
http://drupal.org/cvs?commit=240198
Thanks! :)