diff options
author | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2013-08-30 15:20:30 +0000 |
---|---|---|
committer | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2013-08-30 15:20:30 +0000 |
commit | a1e990177b94299d00ff72125bb1d4ea6a05fd73 (patch) | |
tree | c80f394163dd5a5efb9cdf144d577938ec85c8bc /plugins/modifier.key_not_exists.php | |
parent | 1c70b0447570619f537147db8ca491c054467a12 (diff) | |
download | dokuwiki-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.php | 11 |
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); + }); +} + +?> |