Skip to content
Snippets Groups Projects
Commit 8ab70ac1 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #805228 by catch: unnecessary query in taxonomy_field_extra_fields().

parent 5af292f7
No related branches found
No related tags found
No related merge requests found
......@@ -143,9 +143,9 @@ function taxonomy_term_uri($term) {
*/
function taxonomy_field_extra_fields() {
$return = array();
foreach (taxonomy_vocabulary_get_names() as $machine_name => $vocabulary) {
$return['taxonomy_term'][$machine_name] = array(
$info = entity_get_info('taxonomy_term');
foreach (array_keys($info['bundles']) as $bundle) {
$return['taxonomy_term'][$bundle] = array(
'name' => array(
'label' => t('Name'),
'description' => t('Term name textfield'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment