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.
Add types to @param's and add a @see.
Comment | File | Size | Author |
---|---|---|---|
#8 | interdiff.txt | 2.46 KB | Liam Morland |
#6 | drupal-doc_module_disable-2645544-6-D7.patch | 2.47 KB | Liam Morland |
#2 | drupal-doc_module_disable-2645544-2-D7.patch | 806 bytes | Liam Morland |
Comments
Comment #2
Liam MorlandComment #3
jhodgdonThanks! These look like reasonable changes to make.
One small thing to fix and one suggestion for improvement:
The type on this should be string[] not the generic array.
Maybe also add a @see for module_enable()?
Comment #4
Shreya Shetty CreditAttribution: Shreya Shetty at Trigyn Technologies Ltd commentedComment #5
Shreya Shetty CreditAttribution: Shreya Shetty at Trigyn Technologies Ltd commentedComment #6
Liam MorlandThanks. Updated patch attached.
Comment #7
jhodgdonWhen you attach a new patch on an existing review, you really really really should an interdiff file. Thanks!
Anyway, this patch is fine. Thanks!
Comment #8
Liam MorlandThanks. I wish d.o. took care of interdiffs automatically.
Comment #9
David_Rothstein CreditAttribution: David_Rothstein as a volunteer commentedCommitted to 7.x - thanks!
However, I'm a little unsure about this:
It's in the new coding standards at https://www.drupal.org/coding-standards/docs#types but Drupal 7 is literally using this nowhere else, I think. So I'm not sure if we should introduce it here when everything else just does "array".
But I committed this anyway, since it's not that big of a deal either way and certainly possible to go back later if necessary.