node_get_types

modules/node.module, line 278

Versions
4.7
node_get_types()
5 – 6
node_get_types($op = 'types', $node = NULL, $reset = FALSE)

Return the list of available node types.

Return value

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

▾ 10 functions call 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.
system_update_119 in database/updates.inc
system_update_179 in database/updates.inc
Update base paths for relative URLs in custom blocks, profiles and various variables.
taxonomy_form_vocabulary in modules/taxonomy.module
Display form for adding and editing vocabularies.
theme_get_settings in includes/theme.inc
Retrieve an associative array containing the settings for a theme.
_blogapi_get_node_types in modules/blogapi.module

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.