$errors = [];
if (!empty($params['group_option']) && empty($params['title'])) {
- $errors['title'] = "Group Name is a required field";
+ $errors['title'] = ts('Group Name is a required field');
}
elseif (empty($params['group_option']) && empty($params['group_id'])) {
- $errors['group_id'] = "Select Group is a required field.";
+ $errors['group_id'] = ts('Select Group is a required field.');
}
return empty($errors) ? TRUE : $errors;
$errors = [];
if (!empty($params['group_option']) && empty($params['title'])) {
- $errors['title'] = "Group Name is a required field";
+ $errors['title'] = ts('Group Name is a required field');
}
elseif (empty($params['group_option']) && empty($params['group_id'])) {
- $errors['group_id'] = "Select Group is a required field.";
+ $errors['group_id'] = ts('Select Group is a required field.');
}
return empty($errors) ? TRUE : $errors;