| 1 |
<?php |
<?php |
| 2 |
// $Id: node_import.inc,v 1.1.2.23 2009/01/01 09:49:31 robrechtj Exp $ |
// $Id: node_import.inc,v 1.1.2.24 2009/01/01 09:52:17 robrechtj Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 1036 |
* Uses: nothing. |
* Uses: nothing. |
| 1037 |
*/ |
*/ |
| 1038 |
function node_import_check_node(&$value, $field, $options, $preview) { |
function node_import_check_node(&$value, $field, $options, $preview) { |
| 1039 |
if (is_numeric($value) && intval($value) > 0) { |
if (($nid = node_import_get_object('node', $value)) !== NULL) { |
| 1040 |
|
return $nid; |
| 1041 |
|
} |
| 1042 |
|
//TODO: lookup by title |
| 1043 |
|
else if (is_numeric($value) && intval($value) > 0) { |
| 1044 |
|
node_import_set_object('node', $value, $value); |
| 1045 |
return TRUE; |
return TRUE; |
| 1046 |
} |
} |
| 1047 |
|
|