You are here

function export_node_check in Node export 6

Same name and namespace in other branches
  1. 5.2 export.pages.inc \export_node_check()

Menu callback: prompt the user to confirm the operation

1 call to export_node_check()
export_node_import in ./export.pages.inc
Import Node UI

File

./export.pages.inc, line 165

Code

function export_node_check($node) {
  $method = variable_get('export_method', 'prepopulate');
  switch ($method) {
    case 'save-edit':
      $new_nid = export_node_save($node);
      drupal_goto('node/' . $new_nid . '/edit');
      break;
    case 'prepopulate':
    default:
      include_once drupal_get_path('module', 'node') . '/node.pages.inc';
      return export_node_prepopulate($node);
      break;
  }
}