Created
June 18, 2011 17:29
-
-
Save rubensayshi/1033299 to your computer and use it in GitHub Desktop.
Voiture :: SFI :: SFINode :: node_save
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$node = (object) array( | |
'type' => 'page', | |
'title' => 'Welcome to our website', | |
'body' => array( | |
'nl' => array( | |
0 => array( | |
'value' => '[lorem ipsum etc...]', | |
'format' => 'filtered_html', | |
), | |
), | |
), | |
'field_list_items' => array( | |
'nl' => array( | |
0 => array( | |
'value' => 'item #1', | |
'format' => 'plain', | |
), | |
1 => array( | |
'value' => 'another item', | |
'format' => 'plain', | |
), | |
2 => array( | |
'value' => 'the last item', | |
'format' => 'plain', | |
), | |
), | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment