Add label to room configuration

I'm trying to add label to room configuration just label without white field (Tablet).

I'm working on Ejabberd 2.1.13.

What I'm doing is :

in moc_muc_room.erl I define new field

-define(XFIELDZ(Label),
{xmlelement, "field", [{"type", "term"},
       {"label", translate:translate(Lang, Label)},
       {"var", []}],
[{xmlelement, "value", [], [{xmlcdata, []}]}]}).

-define(STRINGXFIELDZ(Label),
?XFIELDZ(Label)).

And

get_config(Lang, StateData, From) ->
?STRINGXFIELDZ("ZZZZZZZZZZZZZZZZ"),

And it's show to me like this : ZZZZZZZZZZZZZZZZ [white field]

I don't want this field to shown, I want just label to show.

Also I'm trying to change type of XFIELDZ to : {"type", "string"} - {"type", "term"} - {"type", "list"} and not working the white field still shown to me.

What should I do? thnx.

Syndicate content