YammerImport: set some more default fields for user_group registration (still need a group admin tho)

This commit is contained in:
Brion Vibber 2010-09-28 13:07:55 -07:00
parent 782046dc01
commit 3a1f1a49b2

View File

@ -249,8 +249,11 @@ class YammerImporter
$options['mainpage'] = common_local_url('showgroup', $options['mainpage'] = common_local_url('showgroup',
array('nickname' => $options['nickname'])); array('nickname' => $options['nickname']));
// Set some default vals or User_group::register will whine
$options['homepage'] = '';
$options['location'] = '';
$options['aliases'] = array();
// @fixme what about admin user for the group? // @fixme what about admin user for the group?
// bio? homepage etc? aliases?
$options['local'] = true; $options['local'] = true;
return array('orig_id' => $origId, return array('orig_id' => $origId,