NewQuestionAttributes

=The event=

When

This settings happen each time the attribute definition is readed for the installation. In general : it happen one time only.

Input

None.

Possible output


 * Adding new attribute : $this->getEvent->append('questionAttributes', $array); where arry is the new attribute.

=Detail on definition=

New attribute definition
It's an array: attributeName=>[ 'types' : Apply to this question type 'category' : Where to put it   'sortorder' : Sort order in this category 'inputtype' : type of input : [buttongroup,columns,integer,singleselect,switch,text,textarea] 'options' : optionnal options if input type need it (for singleselect and buttongroup) 'default' : the default value 'i18n' : (optionnal) set to true for translatable attribute 'caption' : the label 'help' : an help ]

Input type

 * switch : Switch (on|off) value send 0 or 1
 * buttongroup : Button group, need options array
 * singleselect : Single select in a DropDown
 * text : a short text witout line feed
 * integer : an integer
 * columns : An integer betwwen 1 to 12
 * textarea : text with line feed

=Exemple of usage=