You are here

function node_get_types in Drupal 4

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

Return the list of available node types.

Return value

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

10 calls to node_get_types()
blogapi_settings in modules/blogapi.module
node_add in modules/node.module
Present a node submission form or a set of links to such forms.
node_filters in modules/node.module
List node administration filters that can be applied.
node_form_alter in modules/node.module
Implementation of hook_form_alter().
node_types_configure in modules/node.module
Menu callback; presents each node type configuration page.

... See full list

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');
}