Why node custom fields weren’t saved when adding node programmatically?
This question is related to Why node custom fields weren't saved when adding node programmatically?.
I think that I found why I can't store value in custom fields.
Two Drupal sites A, B. Same server. From site A I want to create node on site B using database access only.
But when I try to get target node type in client sites (A):
db_set_active('gallery'); field_info_instances("node","image") db_set_active();
I am getting empty array. Inside target site B function returns correct fields definition.
I am looking for function to load node custom fields metadata? I don't want to bootstrap site B from site A.