'multipart/form-data')
);
$form->addHidden('action', $allowed_action);
$form->addHidden('group_id', $group_id);
$form->addHidden('parent_id', $message_id);
$form->addHidden('message_id',$message_id );
$form->addHidden('token', $tok);
if (api_get_setting('allow_message_tool') == 'true') {
//normal message
$user_info = api_get_user_info($userfriend_id);
$height = 180;
if ($allowed_action == 'add_message_group') {
$form->addText('title', get_lang('Title'));
$height = 140;
}
$config = array();
$config['ToolbarSet'] = 'Messages';
$form->addHtmlEditor(
'content',
get_lang('Content'),
false,
false,
$config
);
$form->addHtml('