I need to programmatically save some field data (when aduring node of type A is savedsave I want to take the data from type A's title and& path alias and put them intostore it in a link field called field_alternative_titles_titlefield_alternative_titles_title
), I have just started recently getting into the programming side of Drupal, and I am not sure what function is the right one to do that.
Which functions can I did some research, is field_attach_insert the functionuse here? Do I would calluse field_attach_insert
or hook_field_storage_pre_insert
to take that title and path alias and save them to mythe link field?
Or would hook_field_storage_pre_insert be the function to do that?