function taxonomy_entity_info

Implements hook_entity_info().

File

drupal/core/modules/taxonomy/taxonomy.module, line 111
Enables the organization of content into categories.

Code

function taxonomy_entity_info(&$info) {
  foreach (taxonomy_vocabulary_get_names() as $machine_name => $vocabulary) {
    $info['taxonomy_term']['bundles'][$machine_name] = array(
      'label' => $vocabulary->name,
      'admin' => array(
        'path' => 'admin/structure/taxonomy/%taxonomy_vocabulary_machine_name',
        'real path' => 'admin/structure/taxonomy/' . $machine_name,
        'bundle argument' => 3,
        'access arguments' => array(
          'administer taxonomy',
        ),
      ),
    );
  }
}