You are here

function node_node_import_types in Node import 6

Same name and namespace in other branches
  1. 5 supported/node.inc \node_node_import_types()

Implementation of hook_node_import_types().

File

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

Code

function node_node_import_types() {
  $types = array();
  foreach (node_get_types('names') as $type => $name) {
    $types['node:' . $type] = array(
      'title' => t('%name content type', array(
        '%name' => $name,
      )),
      'can_create' => node_access('create', $type),
      'create' => 'node_import_create_node',
    );
  }
  return $types;
}