default values not respected

Hanno - April 29, 2008 - 14:46
Project:Node factory
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:clemens.tolboom
Status:won't fix
Description

default values of the cck_fields are not populated by generating a new node.
should we loop all fields and fill in the default value?

$value = ((!empty($field['widget']['default_value'][0]['value'])) ? $field['widget']['default_value'][0]['value'] : '');

#1

clemens.tolboom - May 30, 2008 - 15:52
Assigned to:Anonymous» clemens.tolboom

Hope to do this one soon.

#2

clemens.tolboom - August 15, 2008 - 16:03
Status:active» postponed (maintainer needs more info)

I need some suggestions for this one. I think this is the best place to do this

<?php
function node_factory_create_node( $nodetype){
?>

but the question is how?

How do I get a list of fields?

#3

clemens.tolboom - January 20, 2009 - 12:29
Status:postponed (maintainer needs more info)» won't fix

- no feedback

 
 

Drupal is a registered trademark of Dries Buytaert.