Same name and namespace in other branches
  1. 5.x modules/node/node.module \node_get_types()
  2. 6.x modules/node/node.module \node_get_types()

Return the list of available node types.

Return value

An array consisting ('#type' => name) pairs.

3 calls to node_get_types()
blogapi_settings in modules/blogapi.module
node_filters in modules/node.module
List node administration filters that can be applied.
taxonomy_form_vocabulary in modules/taxonomy.module
Display form for adding and editing vocabularies.

File

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

Code

function node_get_types() {
  return _node_names('list');
}