I need to programmatically save field data (during node save I want to take the title & path alias and store it in a link field called field_alternative_titles_title
).
Which functions can I use here? Do I use field_attach_insert
or hook_field_storage_pre_insert
to save the link field?