function node_type_get_names

Same name and namespace in other branches
  1. 9 core/modules/node/node.module \node_type_get_names()
  2. 8.9.x core/modules/node/node.module \node_type_get_names()
  3. 10 core/modules/node/node.module \node_type_get_names()
  4. 11.x core/modules/node/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 modules/book/
Form constructor for the book settings form.
comment_entity_info in modules/comment/comment.module
Implements hook_entity_info().
hook_entity_info in modules/system/system.api.php
Inform the base system and the Field API about one or more entity types.
NodeTypeTestCase::testNodeTypeGetFunctions in modules/node/node.test
Ensures that node type functions (node_type_get_*) work correctly.
node_entity_info in modules/node/node.module
Implements hook_entity_info().

... See full list


modules/node/node.module, line 446


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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.