[drupal-devel] [bug] Node options are still looking for individual variable instead of an array

Prometheus6 drupal-devel at drupal.org
Tue Apr 19 20:28:48 UTC 2005


Issue status update for http://drupal.org/node/20868

 Project:      Drupal
 Version:      4.6.0
 Component:    blogapi.module
 Category:     bug reports
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  Prometheus6
 Updated by:   Prometheus6
 Status:       patch
 Attachment:   http://drupal.org/files/issues/BLOGAPI_4_6.txt (1.17 KB)

blogapi.module can create (or attempt to..) any node type in 4.6, but
the code to create a new node still assumes the node will be of type
'blog'. In addition, it's still looking for individual variables rather
than the arrays that are stored in 4.6. 


It initializes those fields with calls like


variable_get('node_promote_blog', 1);
This will always return 1 unless you've upgraded to 4.6 from a previous
version and set your blog nodes not to publish by default, and it will
use that value for every type of node.


This patch retrieves the array (and "comment_$node->type") variable for
the appropriate node type and assigns the values accordingly.




Prometheus6




More information about the drupal-devel mailing list