You are here

function bundle_copy_import_submit in Bundle Copy 7.2

Same name and namespace in other branches
  1. 7 bundle_copy.module \bundle_copy_import_submit()

Submit callback: import data.

File

./bundle_copy.module, line 311
Bundle copy.

Code

function bundle_copy_import_submit($form, &$form_state) {

  // Evaluate data.
  eval($form_state['values']['macro']);
  if (isset($data) && is_array($data)) {
    bundle_copy_import_process($data);
  }
  else {
    drupal_set_message(t('The pasted text did not contain any valid export data.'), 'error');
  }
}