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 |
Jump to:
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
Hope to do this one soon.
#2
I need some suggestions for this one. I think this is the best place to do this
<?phpfunction node_factory_create_node( $nodetype){
?>
but the question is how?
How do I get a list of fields?
#3
- no feedback