$mform->addRule('fullname', get_string('missingfullname'), 'required', null, 'client');
$mform->setType('fullname', PARAM_MULTILANG);
$mform->addRule('shortname', get_string('missingshortname'), 'required', null, 'client');
$mform->setType('shortname', PARAM_MULTILANG);
$mform->addRule('url', get_string('missingurl'), 'required', null, 'client');
$mform->setType('url', PARAM_MULTILANG);
$mform->addRule('icon', get_string('missingurl'), 'required', null, 'client');
$mform->setType('icon', PARAM_MULTILANG);
$mform->addElement('text','address', get_string('field-address', 'local_institutions'),'maxlength="254" size="100"');
$mform->setType('address', PARAM_MULTILANG);
$mform->addElement('text','phone', get_string('field-phone', 'local_institutions'),'maxlength="49" size="20"');
$mform->setType('phone', PARAM_RAW);
$mform->addElement('textarea','description', get_string('field-description', 'local_institutions'), 'wrap="virtual" rows="10" cols="100"');
$mform->setType('description', PARAM_RAW);
$mform->addElement('hidden', 'id', null);
$mform->setType('id', PARAM_INT);