Hi all, so after I have finished the Blocks Advanced tutorial, I still have all the labels in the form between brackets and I don't know why.
For example:
$mform->addElement('text', 'pagetitle', get_string('pagetitle', 'block_simplehtml'));
$mform->setType('pagetitle', PARAM_RAW);
$mform->addRule('pagetitle', null, 'required', null, 'client');
gives me this: [ [pagetitle ] ]