[drupal-devel] [bug] nodeapi 'settings' call sends string instead of object for $node value

Dries drupal-devel at drupal.org
Mon Jan 31 19:39:37 UTC 2005


 Project:      Drupal
 Version:      cvs
 Component:    node system
 Category:     bug reports
 Priority:     normal
 Assigned to:  crunchywelch
 Reported by:  crunchywelch
 Updated by:   Dries
 Status:       patch


 * Invoke a hook_nodeapi() operation in all modules.
 *
 * @param &$node
 *   Either a node object, node array, or a string containing the node
type.

Looks like the node_invoke_nodeapi function is broken.  It used to be
possible to pass a $type.


Dries



Previous comments:
------------------------------------------------------------------------

January 29, 2005 - 09:50 : crunchywelch

Attachment: http://drupal.org/files/issues/node_24.patch (1.42 KB)

when the 'settings' nodeapi operation is invoked, a string containing
the type of node is sent for the $node argument, instead of an object
like the rest of the operations. This breaks comment.module, and is
inconsistent with the rest of the operations and documentation. 
This small patch fixes the problem.


-- 
View: http://drupal.org/node/16384
Edit: http://drupal.org/project/comments/add/16384





More information about the drupal-devel mailing list