Added callback afterGetItems on Listings

Updated MP Notice to allow reuse of notices (by id)
Updated newsletters endpoint's listing method to include mta_log & mta_method in response
Updated all newsletter listings in order to dynamically display mailer error
This commit is contained in:
Jonathan Labreuille
2016-11-25 11:24:04 +01:00
committed by Vlad
parent 8b96806b11
commit 80efc3c12d
10 changed files with 295 additions and 266 deletions

View File

@ -346,7 +346,9 @@ class Newsletters extends APIEndpoint {
return $this->successResponse($data, array(
'count' => $listing_data['count'],
'filters' => $listing_data['filters'],
'groups' => $listing_data['groups']
'groups' => $listing_data['groups'],
'mta_log' => Setting::getValue('mta_log'),
'mta_method' => Setting::getValue('mta.method')
));
}