/** * @param array $notification * @param string $groupID */ public function prepareNotification(&$notification) { if (in_array($notification['id'], $this->notificationGroups->getNotificationsWithIntegerType())) { $notification['type'] = 'integer'; } else { $notification['type'] = 'boolean'; } $notification['is_required'] = false; $notification['is_system'] = true; }
/** * @param array $notification * @param string $groupID */ public function prepareNotification(&$notification, $groupID) { if (in_array($notification['id'], $this->notificationGroups->getNotificationsWithIntegerType())) { $notification['type'] = 'integer'; } else { $notification['type'] = 'list'; $notification['list_values'] = SJB_EmailTemplateEditor::getEmailTemplatesForListByGroup($groupID); } $notification['is_required'] = false; $notification['is_system'] = false; }