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.
* @param type $setting
* @return type
What is 'type'? What does this function expect, and what does it return?
Comment | File | Size | Author |
---|---|---|---|
#8 | eu_cookie_compliance-confusing-param-and-return-documentation-1594602-8.patch | 838 bytes | svenryen |
Comments
Comment #1
Miszel CreditAttribution: Miszel commentedThe function returns either all popup settings for the current language or a single setting. So if you want to find out, for example, if the popup has been enabled, you could call it this way: eu_cookie_compliance_get_settings('popup_enabled').
I agree that the code documentation could be improved but with the approaching deadline, it is not my first priority.
Changed to minor as it does not affect the functionality.
Comment #2
rsvelko CreditAttribution: rsvelko commenteddocs bugs better be considered tasks, not bugs ? imho... cause the module's image in the eyes of the non-techie users depends on how many open bugs a module has...
with bugs like this - its a waste of time to go and check on a bug that is not a bug and to +1 the number of bugs on the project page...
Comment #3
Miszel CreditAttribution: Miszel commentedYou are absolutely right. Cheers.
Comment #4
joachim CreditAttribution: joachim commentedDocumentation bugs are definitely bugs in my opinion.
Comment #5
Miszel CreditAttribution: Miszel commentedfixed in 6.x-1.4 Thanks for reporting.
Comment #6
achtonWas this really fixed? I can't find the commit in question.
(Please link to the git commit on drupalcode.org when fixing, it really helps to review issues! :-))
Comment #8
svenryen CreditAttribution: svenryen at Ramsalt Lab commentedI realize this is a really old issue, but it was quite easy to fix, so here's a patch.
Comment #10
svenryen CreditAttribution: svenryen at Ramsalt Lab commented