Renari
Member
Code:
$dw = XenForo_DataWriter::create('XenForo_DataWriter_UserField');
$dw->set('field_id', 'Field');
$dw->set('display_group', 'contact');
$dw->set('display_order', 130);
$dw->set('field_type', 'textbox');
$dw->set('match_type', 'none');
$dw->set('user_editable', 'yes');
$dw->save();
From what I understand, this should add a new userfield in the contacts section named "Field" however from what I've seen it's doing nothing when run as an install method for an addon.