summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-07-19 17:09:55 +0000
committerDries Buytaert <dries@buytaert.net>2005-07-19 17:09:55 +0000
commita2656ab39bcc5aaa13bc6796883dfa433c656bfe (patch)
treee6234290417dc13cf5e68dea004ba85772d640fe /modules/taxonomy/taxonomy.module
parent1d9c0cd65f1688ba1aa747b1adf36b8ab92620eb (diff)
downloadbrdo-a2656ab39bcc5aaa13bc6796883dfa433c656bfe.tar.gz
brdo-a2656ab39bcc5aaa13bc6796883dfa433c656bfe.tar.bz2
- Misplaced backet
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r--modules/taxonomy/taxonomy.module38
1 files changed, 19 insertions, 19 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 52e56dc37..f5a438e8a 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -384,29 +384,29 @@ function taxonomy_overview() {
$header = array(t('Name'), t('Operations'));
$vocabulary = taxonomy_get_vocabulary($vid);
- drupal_set_title(check_plain($vocabulary->name));
- $start_from = $_GET['page'] ? $_GET['page'] : 0;
- $total_entries = 0; // total count for pager
- $page_increment = 25; // number of tids per page
- $displayed_count = 0; // number of tids shown
+ drupal_set_title(check_plain($vocabulary->name));
+ $start_from = $_GET['page'] ? $_GET['page'] : 0;
+ $total_entries = 0; // total count for pager
+ $page_increment = 25; // number of tids per page
+ $displayed_count = 0; // number of tids shown
- $tree = taxonomy_get_tree($vocabulary->vid);
- foreach ($tree as $term) {
- $total_entries++; // we're counting all-totals, not displayed
- if (($start_from && ($start_from * $page_increment) >= $total_entries) || ($displayed_count == $page_increment)) { continue; }
- $rows[] = array(_taxonomy_depth($term->depth) . ' ' . check_plain($term->name), l(t('edit'), "admin/taxonomy/edit/term/$term->tid", array(), $destination));
- $displayed_count++; // we're counting tids displayed
+ $tree = taxonomy_get_tree($vocabulary->vid);
+ foreach ($tree as $term) {
+ $total_entries++; // we're counting all-totals, not displayed
+ if (($start_from && ($start_from * $page_increment) >= $total_entries) || ($displayed_count == $page_increment)) { continue; }
+ $rows[] = array(_taxonomy_depth($term->depth) . ' ' . check_plain($term->name), l(t('edit'), "admin/taxonomy/edit/term/$term->tid", array(), $destination));
+ $displayed_count++; // we're counting tids displayed
+ }
- if (!$rows) {
- $rows[] = array(array('data' => t('No terms available.'), 'colspan' => '2'));
- }
+ if (!$rows) {
+ $rows[] = array(array('data' => t('No terms available.'), 'colspan' => '2'));
+ }
- $GLOBALS['pager_page_array'][] = $start_from; // FIXME
- $GLOBALS['pager_total'][] = intval($total_entries / $page_increment) + 1; // FIXME
+ $GLOBALS['pager_page_array'][] = $start_from; // FIXME
+ $GLOBALS['pager_total'][] = intval($total_entries / $page_increment) + 1; // FIXME
- if ($total_entries >= $page_increment) {
- $rows[] = array(array('data' => theme('pager', NULL, $page_increment), 'colspan' => '2'));
- }
+ if ($total_entries >= $page_increment) {
+ $rows[] = array(array('data' => theme('pager', NULL, $page_increment), 'colspan' => '2'));
}
}