1 node.module node_type_get_names()

Returns a list of available node type names.

This list can include types that are queued for addition or deletion. See _node_types_build() for details.

Return value

array An array of node type names, keyed by the type.

File

core/modules/node/node.module, line 434
The core module that allows content to be submitted to the site.

Code

function node_type_get_names() {
  return _node_types_build()->names;
}