Kyberia v2.0
[mirrors/Kyberia-bloodline.git] / inc / smarty / node_methodz / modifier.string_format.php
diff --git a/inc/smarty/node_methodz/modifier.string_format.php b/inc/smarty/node_methodz/modifier.string_format.php
new file mode 100644 (file)
index 0000000..efd6215
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+/**
+ * Smarty plugin
+ * @package Smarty
+ * @subpackage plugins
+ */
+
+
+/**
+ * Smarty string_format modifier plugin
+ *
+ * Type:     modifier<br>
+ * Name:     string_format<br>
+ * Purpose:  format strings via sprintf
+ * @link http://smarty.php.net/manual/en/language.modifier.string.format.php
+ *          string_format (Smarty online manual)
+ * @param string
+ * @param string
+ * @return string
+ */
+function smarty_modifier_string_format($string, $format)
+{
+    return sprintf($format, $string);
+}
+
+/* vim: set expandtab: */
+
+?>
This page took 0.134612 seconds and 4 git commands to generate.