Create a "potential default group" called "Friends" on registration.
This commit is contained in:
parent
e5a988f0b5
commit
7d77cfef56
|
@ -290,6 +290,11 @@ function register_post(&$a) {
|
||||||
dbesc(datetime_convert())
|
dbesc(datetime_convert())
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Create a group with no members. This allows somebody to use it
|
||||||
|
// right away as a default group for new contacts.
|
||||||
|
|
||||||
|
require_once('include/group.php');
|
||||||
|
group_add($newuid, t('Friends'));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue