| 1 |
|
$content[type] = array ( |
| 2 |
|
'name' => 'Node factory story ref auto test', |
| 3 |
|
'type' => 'nf_sr_auto_test', |
| 4 |
|
'description' => 'Node factory story ref auto test', |
| 5 |
|
'title_label' => 'Title', |
| 6 |
|
'body_label' => 'Body', |
| 7 |
|
'min_word_count' => '0', |
| 8 |
|
'help' => '', |
| 9 |
|
'node_options' => |
| 10 |
|
array ( |
| 11 |
|
'status' => true, |
| 12 |
|
'promote' => true, |
| 13 |
|
'sticky' => false, |
| 14 |
|
'revision' => false, |
| 15 |
|
), |
| 16 |
|
'comment' => '0', |
| 17 |
|
'print_display' => 0, |
| 18 |
|
'old_type' => 'nf_sr_auto_test', |
| 19 |
|
'orig_type' => '', |
| 20 |
|
'module' => 'node', |
| 21 |
|
'custom' => '1', |
| 22 |
|
'modified' => '1', |
| 23 |
|
'locked' => '0', |
| 24 |
|
); |
| 25 |
|
$content[fields] = array ( |
| 26 |
|
0 => |
| 27 |
|
array ( |
| 28 |
|
'widget_type' => 'nodereference_autocomplete', |
| 29 |
|
'label' => 'story_ref_auto', |
| 30 |
|
'weight' => '0', |
| 31 |
|
'description' => '', |
| 32 |
|
'default_value_widget' => |
| 33 |
|
array ( |
| 34 |
|
'field_story_ref_auto' => |
| 35 |
|
array ( |
| 36 |
|
0 => |
| 37 |
|
array ( |
| 38 |
|
'node_name' => '', |
| 39 |
|
), |
| 40 |
|
), |
| 41 |
|
), |
| 42 |
|
'default_value_php' => '', |
| 43 |
|
'required' => '0', |
| 44 |
|
'multiple' => '0', |
| 45 |
|
'referenceable_types' => |
| 46 |
|
array ( |
| 47 |
|
'story' => true, |
| 48 |
|
0 => 1, |
| 49 |
|
'nf_sr_auto_test' => false, |
| 50 |
|
'nf_sr_test' => false, |
| 51 |
|
'page' => false, |
| 52 |
|
), |
| 53 |
|
'field_name' => 'field_story_ref_auto', |
| 54 |
|
'field_type' => 'nodereference', |
| 55 |
|
'module' => 'nodereference', |
| 56 |
|
'default_value' => |
| 57 |
|
array ( |
| 58 |
|
0 => |
| 59 |
|
array ( |
| 60 |
|
), |
| 61 |
|
), |
| 62 |
|
), |
| 63 |
|
); |