aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-30 04:20:01 -0700
committerfriendica <info@friendica.com>2012-05-30 04:20:01 -0700
commit7d77cfef56853fa5febb36b4cb4a1df8da7c3224 (patch)
treecb1a017923f4d904de33660adc68683eeccca76b
parente5a988f0b58f3a2319863580817dc22545e2c498 (diff)
downloadvolse-hubzilla-7d77cfef56853fa5febb36b4cb4a1df8da7c3224.tar.gz
volse-hubzilla-7d77cfef56853fa5febb36b4cb4a1df8da7c3224.tar.bz2
volse-hubzilla-7d77cfef56853fa5febb36b4cb4a1df8da7c3224.zip
Create a "potential default group" called "Friends" on registration.
-rw-r--r--mod/register.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/register.php b/mod/register.php
index 58bba8533..aeeec7c1f 100644
--- a/mod/register.php
+++ b/mod/register.php
@@ -290,6 +290,11 @@ function register_post(&$a) {
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'));
}