Do I have to provide both 'value' & 'safe_value'?
1 Answer
No.
If you are adding field programmatically you only need to set value
.
The safe value
is generated when the field is loaded.
It is the value passed through the function _text_sanitize()
which in this case i think is called through text_field_load()
More information on the difference between them here :
value
and see what happens? If you have specific doubts, you should ask about them.