Files
piratepoet/lib/Twig/Functions.php
Jonathan Labreuille 56e40feb56 Bulk actions + Extra data
- fixed issue on bulk action being run even without any items selected
- added WP like feature regarding item selection, if all items are checked, it also checks the header/footer checkboxes
- fixed issue where the selection state was not properly reset
- added List column to subscribers
- added json_encode/json_decode to Twig
2015-09-23 14:13:25 +02:00

28 lines
494 B
PHP

<?php
namespace MailPoet\Twig;
class Functions extends \Twig_Extension {
public function __construct() {
}
public function getName() {
return 'functions';
}
public function getFunctions() {
return array(
new \Twig_SimpleFunction(
'json_encode',
'json_encode',
array('is_safe' => array('all'))
),
new \Twig_SimpleFunction(
'json_decode',
'json_decode',
array('is_safe' => array('all'))
)
);
}
}