removed mods directory from the ATutor codebase
[atutor.git] / mods / phpdoc2 / PhpDocumentor / phpDocumentor / Smarty-2.6.0 / libs / plugins / function.assign.php
diff --git a/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/plugins/function.assign.php b/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/plugins/function.assign.php
deleted file mode 100644 (file)
index c04be8b..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php\r
-/**\r
- * Smarty plugin\r
- * @package Smarty\r
- * @subpackage plugins\r
- */\r
-\r
-/**\r
- * Smarty {assign} function plugin\r
- *\r
- * Type:     function<br>\r
- * Name:     assign<br>\r
- * Purpose:  assign a value to a template variable\r
- * @link http://smarty.php.net/manual/en/language.custom.functions.php#LANGUAGE.FUNCTION.ASSIGN {assign}\r
- *       (Smarty online manual)\r
- * @param array Format: array('var' => variable name, 'value' => value to assign)\r
- * @param Smarty\r
- */\r
-function smarty_function_assign($params, &$smarty)\r
-{\r
-    extract($params);\r
-\r
-    if (empty($var)) {\r
-        $smarty->trigger_error("assign: missing 'var' parameter");\r
-        return;\r
-    }\r
-\r
-    if (!in_array('value', array_keys($params))) {\r
-        $smarty->trigger_error("assign: missing 'value' parameter");\r
-        return;\r
-    }\r
-\r
-    $smarty->assign($var, $value);\r
-}\r
-\r
-/* vim: set expandtab: */\r
-\r
-?>\r