function node_type_get_types

Returns a list of all the available node types.

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

Return value

An array of node types, as objects, keyed by the type.

See also

_node_types_build()

node_type_load()

17 calls to node_type_get_types()
CommentFieldsTest::testCommentDefaultFields in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentFieldsTest.php
Tests that the default 'comment_body' field is correctly added.
CommentTestBase::setUp in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php
Sets up a Drupal site for running functional and integration tests.
comment_field_extra_fields in drupal/core/modules/comment/comment.module
Implements hook_field_extra_fields().
comment_modules_enabled in drupal/core/modules/comment/comment.install
Implements hook_modules_enabled().
comment_uninstall in drupal/core/modules/comment/comment.install
Implements hook_uninstall().

... See full list

File

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

Code

function node_type_get_types() {
  return _node_types_build()->types;
}