API page: http://api.drupal.org/api/drupal/modules--node--node.module/function/nod...

Describe the problem you have found:
The Return Value section says "An array of node types managed by this module," which is misleading, as shown in this module in the review queue. This function returns all node types managed by any module. (I suppose it means "all node types managed by node.module," but that's not made clear.)

This should prevent modules from accidentally managing access control on other modules' nodes, as was happening in the example module I gave.

Comments

barbi’s picture

Version: 7.x-dev » 8.x-dev
Assigned: Unassigned » barbi

Recommended text:
all node types managed by the node module

jhodgdon’s picture

I'm not against the change you propose.... The long description paragraph in the doc explains what is going on... Maybe the return should be changed to:

An array of node types that should be managed by node.module permissions.

jhodgdon’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)

This issue has vanished.