This is not tested but I think you need to pass the array by reference.
PHP Code:
Events::on('add_value_to_array', function(&$array) {
error_log("add_value_to_array" . PHP_EOL, 3, "events.txt");
$array[] = 'new';
});
You can try your way with array_pust but then you making an extra function call.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )