Downloads
Download tar.gz
11.22 KB
MD5: d818fdfd84c4fcefd33d10cc7a14b904
SHA-1: 7aae0853301315a989692500c0f950dbc3e4d761
SHA-256: 8329a52ce654887456a3551f7d5d777c3d257996d7b1d6886834e80547111c3e
Download zip
12.34 KB
MD5: 0d2911f9b454a503f4fa79ad80c5e6eb
SHA-1: 2470b3fe6852369ffb977ee0a7c54b6302c9ebd3
SHA-256: fc60380f71ffc7a0ef91257b27beca2e535d34fff66cf47b799d5ea9ab9c5b53
Release notes
Finally a real release. Thanks to Hanno Lans this release could be build.
node_factory_set_value is now aware of some cck field types:
- node reference : select or autocomplete
- text / integer : select, radio/checkbox
Furthermore og_groups field is working. When a cck field is not supported then function node_factory_set_cck_value is to the rescue. This is currently the only way to support multiple values.
With good sponsorship the (cck only) function node_factory_add_value can be build for supporting cck multiple values.
Try this:
$edit = node_factory_create_node('cck_options_number');
node_factory_set_value( $edit, 'title', 'test-' . date('y-m-d G:i:s'));
node_factory_set_value( $edit, 'og_groups', array( 126 , 130));
node_factory_set_value( $edit, 'field_noderef', 126);
node_factory_set_value( $edit, 'field_integer', 10);
node_factory_save_node( $edit);
Please read the project page and apply the hints before submitting an issue.
Thanks,
Clemens