diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-26 10:27:13 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-26 10:27:13 +0000 |
commit | 98ee16ca49c70d12225677999b7534744d13f168 (patch) | |
tree | 644a2449f249586382b20449fecac5389c71e860 /modules/slideshow/helpers | |
parent | e1f39ac13f587c6c6fbf5c5ab522b8422f992366 (diff) |
Simplify tags code some more:
1) change buckets to be 1-7 not 0-6.. zero-based indicies don't make sense in the
real world and are liable to confuse themers.
2) Change tag API to popular_tags($count) which just returns the popular tags. Let
the block code massage it into the right format for the view.
3) Move alphasort into the block code, simplify it and rename it to sort_by_name so
that it's more descriptive
4) Do the bucketing in the view; this allows the themer to override it and create their
own bucketing algorithm to go with the theme's CSS.
5) Don't create any temporary objects.
Diffstat (limited to 'modules/slideshow/helpers')
0 files changed, 0 insertions, 0 deletions