init
[garradin.git] / include / libs / template_lite / plugins / function.in_array.php
1 <?php
2 /**
3 * template_lite in_array plugin
4 *
5 * Type: function
6 * Name: in_array
7 * Purpose: Checks to see if there is an item in the array that matches and returns the returnvalue if true.
8 */
9 function tpl_function_in_array($params, &$tpl)
10 {
11 extract($params);
12
13 if (is_array($array))
14 {
15 if (in_array($match, $array))
16 {
17 return $returnvalue;
18 }
19 }
20 }
21 ?>