node_get_types

Definition

node_get_types()
modules/node.module, line 278

Description

Return the list of available node types.

Return value

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

Code

<?php
function node_get_types() {
  return _node_names('list');
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.