function eimport_process_info in Embedded Media Field 5
this will prepare our node, save it, and give us a message
1 call to eimport_process_info()
- emimport_save_info_for_processing in contrib/
emimport/ emimport.module - this will save the info gathered to be imported for later saving as a new node (during the cron or other process)
File
- contrib/
emimport/ emimport.module, line 494
Code
function eimport_process_info($info) {
$node = emimport_node($info);
// $node = emimport_node($type, $user, $title, $body, $field_name, $original_link, $code, $provider, $tags, $tags_vid);
// $node = emimport_node($form_values, $field_name, $item, $codes, $tags_vid, $type);
node_save($node);
drupal_set_message(t('Saved !node', array(
'!node' => l($node->title, 'node/' . $node->nid),
)));
}