You are here

function biblio_ris_form_biblio_form_submit in Bibliography Module 7.2

1 string reference to 'biblio_ris_form_biblio_form_submit'
biblio_ris_form_biblio_form_alter in modules/RIS/biblio_ris.module

File

modules/RIS/biblio_ris.module, line 66

Code

function biblio_ris_form_biblio_form_submit($form, &$form_state) {
  global $user;
  $node_data = array();
  $dups = array();
  if (strlen($form_state['values']['paste_data_ris'])) {
    $node_data = _biblio_ris_import_string($form_state['values']['paste_data_ris']);
  }
  if (!empty($node_data) && is_object($node_data)) {
    $biblio = biblio_create($node_data->biblio_type, (array) $node_data);
    $biblio->biblio_keywords = $node_data->biblio_keywords;
    $form_state['values'] = array_merge($form_state['values'], (array) $node_data);
    $form_state['input']['biblio_type'] = $form_state['biblio_type'] = $node_data->biblio_type;
    $form_state['biblio_imported'] = $biblio;
    $form_state['biblio_imported_contributors'] = $node_data->biblio_contributors;
  }
  $form_state['rebuild'] = TRUE;
  return;
}