root/branches/release-26/php/lib/modifier.setvar.php
@
1174
| Revision 1174, 344 bytes (checked in by bchoate, 23 months ago) |
|---|
| 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 | |
| 8 | function smarty_modifier_setvar($text, $name) { |
| 9 | global $mt; |
| 10 | $ctx =& $mt->context(); |
| 11 | $vars =& $ctx->__stash['vars']; |
| 12 | $vars[$name] = $text; |
| 13 | return ''; |
| 14 | } |
| 15 | ?> |
Note: See TracBrowser
for help on using the browser.
