Create a "potential default group" called "Friends" on registration.
This commit is contained in:
		
					parent
					
						
							
								e5a988f0b5
							
						
					
				
			
			
				commit
				
					
						7d77cfef56
					
				
			
		
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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'));
 | 
			
		||||
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue