[documentation] [Documentation bug] hook_node_name wrong parameters
description
robertgarrigos
drupal-docs at drupal.org
Tue Apr 11 05:38:21 UTC 2006
Issue status update for
http://drupal.org/node/58195
Post a follow up:
http://drupal.org/project/comments/add/58195
Project: Documentation
Version: <none>
Component: Developer Guide
Category: bug reports
Priority: normal
Assigned to: Anonymous
Reported by: robertgarrigos
Updated by: robertgarrigos
Status: active
I noticed that when using hook_node_types, to create more than one node
types, hook_node_name may get $node, its parameter, not just as string
and as object but as array also, which is not stated in the api
(http://api.drupal.org/api/4.6/function/hook_node_name). If you don't
expect $node to be an array you don't get the node type listed in the
node/add page. This is, of course, if you use one unique hook_node_name
function to declare all your node type names instead of one
hook_node_name for each node type.
Is this specified somewhere else in the docs? Otherwise I would say it
would need to be fixed in the api's, even if this function have been
disappeared with 4.7.
robertgarrigos
More information about the documentation
mailing list