You are here

function node_import_get_object in Node import 6

Get an object-id from the node_import cache.

Parameters

$type: String. The type of object (eg 'user').

$value: String or array. The value to get the object-id of.

Return value

NULL if not yet in cache. Otherwise an integer.

See also

node_import_set_object().

Related topics

6 calls to node_import_get_object()
book_node_import_values_alter in supported/book.inc
Implementation of hook_node_import_values_alter().
menu_node_import_values_alter in supported/menu.inc
Implementation of hook_node_import_values_alter().
node_import_check_book_reference in supported/book.inc
Check whether the value is a book (by NID or Title).
node_import_check_node_reference in ./node_import.inc
Check if the value is a valid node reference (by nid or title).
node_import_check_user_reference in ./node_import.inc
Check if the value is a valid user (by uid, name or email).

... See full list

File

./node_import.inc, line 1464
Public API of the Node import module.

Code

function node_import_get_object($type, $value) {
  return node_import_set_object($type, $value);
}