function node_entity_bundle_info

Implements hook_entity_bundle_info().

File

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

Code

function node_entity_bundle_info() {
  $bundles = array();

  // Bundles must provide a human readable name so we can create help and error
  // messages.
  node_type_cache_reset();
  foreach (node_type_get_names() as $type => $name) {
    $bundles['node'][$type]['label'] = $name;
  }
  return $bundles;
}