there is any way to validate the settings parameters for a custom block?
In my custom block i'm added a settings.php file with some settings like this:
$settings->add(new admin_setting_heading( 'headerconfig', get_string('headerconfig', 'block_simplehtml'),
get_string('descconfig', 'block_simplehtml') ));
When I access to setting page for this block I want to validate some fields when i submit the form like Form Api.
/admin/settings.php?section=blocksettingemployability
I want to validate some fields when the form is submited.
This is posible in a block?. Another way?