function node_type_get_names

7.x node.module node_type_get_names()
8.x 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

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

10 calls to node_type_get_names()
book_admin_settings in drupal/modules/book/book.admin.inc
Form constructor for the book settings form.
comment_entity_info in drupal/modules/comment/comment.module
Implements hook_entity_info().
hook_entity_info in drupal/modules/system/system.api.php
Inform the base system and the Field API about one or more entity types.
NodeTypeTestCase::testNodeTypeGetFunctions in drupal/modules/node/node.test
Ensures that node type functions (node_type_get_*) work correctly.
node_entity_info in drupal/modules/node/node.module
Implements hook_entity_info().

... See full list

File

drupal/modules/node/node.module, line 446
The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.

Code

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