The documentation for hook_modules_uninstalled lists the $modules parameter as a string ("The name of the uninstalled module."). This is incorrect, the $modules parameter is an array.

CommentFileSizeAuthor
#3 system.api_.modules-parameter-712364-3.patch429 bytesdjac
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhodgdon’s picture

Issue tags: +Novice

Good point!

djac’s picture

Assigned: Unassigned » djac
Status: Needs review » Active
djac’s picture

Assigned: djac » Unassigned
Status: Active » Needs review
FileSize
429 bytes

Updated hook_modules_uninstalled() documentation to specify that $modules is an array.

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

Looks quite reasonable to me. Thanks!

The only thing I would say for next time is that if a parameter is an array, we are encouraging

* @param array $modules

i.e. putting the data type before the parameter name. But as this is not exactly a doc *requirement* now...

djac’s picture

Issue tags: +D7csmtl

I tried to use similar syntax/wording as hook_modules_installed(), but I will keep your suggestion in mind for next time, as I agree with you 100%!

jhodgdon’s picture

It's a new standard, and not many functions are using it.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Good catch. Committed to CVS HEAD.

Status: Fixed » Closed (fixed)
Issue tags: -Quick fix, -Novice, -D7csmtl

Automatically closed -- issue fixed for 2 weeks with no activity.