[drupal-devel] [bug] Content type options editing broken
Goba
drupal-devel at drupal.org
Mon Feb 7 22:10:00 UTC 2005
Project: Drupal
Version: cvs
Component: node system
Category: bug reports
Priority: normal
Assigned to: Goba
Reported by: Goba
Updated by: Goba
Status: patch
Attachment: http://drupal.org/files/issues/Drupal-fix-node-options-settings.patch (1.38 KB)
The node options settings implemented through the nodeapi 'settings' op
is incorrectly invoked. Only the type is passed on as a string, while
the nodeapi hook expects a node object. Therefore the type property of
the object is not possible to use in the hook, and it is impossible to
set and content type options.
One way to fix it is to use $node as a typename inside the nodeapi
settings op implementation, and the other way is to really pass an
object. A patch for the second option is attached.
Goba
--
View: http://drupal.org/node/16960
Edit: http://drupal.org/project/comments/add/16960
More information about the drupal-devel
mailing list