root/branches/release-26/php/lib/function.mttagcount.php @ 1174

Revision 1174, 382 bytes (checked in by bchoate, 23 months ago)

Updated copyright year for source.

Line 
1<?php
2# Movable Type (r) Open Source (C) 2001-2008 Six Apart, Ltd.
3# This program is distributed under the terms of the
4# GNU General Public License, version 2.
5#
6# $Id$
7
8function smarty_function_mttagcount($args, &$ctx) {
9    $tag = $ctx->stash('Tag');
10    if (!$tag) return '';
11    if (is_array($tag)) {
12        return $tag['tag_count'];
13    } else {
14        return 0;
15    }
16}
17?>
Note: See TracBrowser for help on using the browser.