by Yusuf Badran.
Hi Edward,
This might not be ideal as it's a change to core code, but I hope this helps. On line 152 of backup_ui_setting.class.php, it looks like Moodle will throw this error if there is any non-text there.
I commented out part of that line as shown below with /* */ and it will now only throw the error if the label is empty.
if ($label === ''/* || $label !== clean_param($label, PARAM_TEXT)*/) {
throw new base_setting_ui_exception('setting_invalid_ui_label');
}
Yusuf