value — expand to value of the UserDB variable specified in body
The filter expands to the value of a UserDB variable. Name of the variable is specified in filter body.
Example: Filter example
[value name=online_value_test set="TEST VALUE" hide=1] My test value is [filter value]online_value_test[/filter]Example in action:
My test value is TEST VALUE
Interchange 5.9.0:
Source: code/Filter/value.filter
Lines: 18
# Copyright 2002-2007 Interchange Development Group and others
# Copyright 1996-2002 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. See the LICENSE file for details.
#
# $Id: value.filter,v 1.5 2007-03-30 23:40:45 pajamian Exp $
CodeDef value Filter
CodeDef value Description Return $Values->{VALUE}
CodeDef value Visibility private
CodeDef value Routine <<EOR
sub {
return $::Values->{$_[0]};
}
EOR