<?php

$inputRules = [
    "email" => ["required" => true, "validate" => ["filter" => FILTER_VALIDATE_EMAIL]],
];

if (__RB_validateInput($inputRules, 'newsletter_subscribe')) {
    $__RB_success['newsletter_subscribe'] = true;
}

