Function Name:
groups_update_groupmeta ($id, $meta_key, $meta_value)
Parameters:
$id: a group id
$meta_key: name of the metadatum you want to set
$meta_value: the value you want to give it
Function Name:
xprofile_set_field_data($field_key, $id, $field_val)
Sets the value of an extended profile field
Parameters:
$field_key: Name of the field you want to set
$id: a user id
$field_val: Value of the field to be set