summaryrefslogtreecommitdiffstats
path: root/plugins/modifier.key_not_exists.php
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2013-08-30 15:20:30 +0000
committerAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2013-08-30 15:20:30 +0000
commita1e990177b94299d00ff72125bb1d4ea6a05fd73 (patch)
treec80f394163dd5a5efb9cdf144d577938ec85c8bc /plugins/modifier.key_not_exists.php
parent1c70b0447570619f537147db8ca491c054467a12 (diff)
downloaddokuwiki-a1e990177b94299d00ff72125bb1d4ea6a05fd73.tar.gz
dokuwiki-a1e990177b94299d00ff72125bb1d4ea6a05fd73.tar.bz2
dokuwiki-a1e990177b94299d00ff72125bb1d4ea6a05fd73.zip
use smarty to render templates from wikipages
Diffstat (limited to 'plugins/modifier.key_not_exists.php')
-rw-r--r--plugins/modifier.key_not_exists.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/modifier.key_not_exists.php b/plugins/modifier.key_not_exists.php
new file mode 100644
index 0000000..f6906cd
--- /dev/null
+++ b/plugins/modifier.key_not_exists.php
@@ -0,0 +1,11 @@
+<?php
+
+function smarty_modifier_key_not_exists($value, $key)
+{
+ return array_filter($value,
+ function($v) use ($key) {
+ return !array_key_exists($key, $v);
+ });
+}
+
+?>