I have a content type which has a field of type "long text with summary".
When I to try programmatically save a node with the code below, the value is not being saved.
How can I save the data into the field and set the format to "full_html"?
what does not work (assume the rest of the fields are set):
$node = new stdClass(); $node->type ='some_type'; $node->language = 'en'; node_object_prepare($node); $node->field_custom_description_value = 'some_value'; $node->field_custom_description_format = 'full_html'; /* I also tried this */ $node->field_custom_description[$node->language][0]['value']-> 'some_value'; $node->field_custom_description[$node->language][0][format]-> 'full_html';