Index: modules/taxonomy.module =================================================================== RCS file: /cvs/drupal/drupal/modules/taxonomy.module,v retrieving revision 1.195 diff -u -r1.195 taxonomy.module --- modules/taxonomy.module 12 Apr 2005 19:18:57 -0000 1.195 +++ modules/taxonomy.module 14 Apr 2005 16:26:39 -0000 @@ -377,8 +377,14 @@ if (!$vocabulary->tags) { $tree = taxonomy_get_tree($vocabulary->vid); if ($tree) { - foreach ($tree as $term) { - $rows[] = array(array('data' => _taxonomy_depth($term->depth) . ' ' . check_plain($term->name), 'class' => 'term'), NULL, NULL, NULL, l(t('edit term'), "admin/taxonomy/edit/term/$term->tid")); + $term_count = count($tree); + if ($term_count > 25) { + $rows[] = array(array('data' => t('This vocabulary has more than 25 terms:') . ' ' . l(t('view terms'), "admin/taxonomy/$vocabulary->vid") . '.', 'colspan' => '5', 'class' => 'message')); + } + else { + foreach ($tree as $term) { + $rows[] = array(array('data' => _taxonomy_depth($term->depth) . ' ' . check_plain($term->name), 'class' => 'term'), NULL, NULL, NULL, l(t('edit term'), "admin/taxonomy/edit/term/$term->tid")); + } } } else {