You are here

function node_import_type_is_node in Node import 6

Check if the node_import $type is a node content type.

Parameters

$type: String. Node_import $type.

Return value

FALSE if $type is not a node content type. Otherwise the node content type.

45 calls to node_import_type_is_node()
auto_nodetitle_node_import_fields_alter in supported/auto_nodetitle/auto_nodetitle.inc
Implementation of hook_node_import_fields_alter().
book_node_import_defaults in supported/book.inc
Implementation of hook_node_import_defaults().
book_node_import_fields in supported/book.inc
Implementation of hook_node_import_fields().
book_node_import_postprocess in supported/book.inc
Implementation of hook_node_import_postprocess().
book_node_import_values_alter in supported/book.inc
Implementation of hook_node_import_values_alter().

... See full list

File

supported/node.inc, line 34
Support file for the core node module.

Code

function node_import_type_is_node($type) {
  if (strpos($type, 'node:') === 0) {
    return substr($type, strlen('node:'));
  }
  return FALSE;
}