Developing a plugin "new question type" 3.x

Re: Developing a plugin "new question type" 3.5

by Tim Hunt -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
You add a 'text' field, and they set the type to PARAM_INT:

$mform->addElement('text', 'myintfield', ...);
$mform->setType('myintfield', PARAM_INT);