Merge pull request #510 from fermionic/lockview-plugin-support
allow changing the lockview content with a plugin
This commit is contained in:
		
				commit
				
					
						14d8033e54
					
				
			
		
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -24,8 +24,13 @@ function lockview_content(&$a) {
 | 
			
		|||
	if(! count($r))
 | 
			
		||||
		killme();
 | 
			
		||||
	$item = $r[0];
 | 
			
		||||
	if($item['uid'] != local_user())
 | 
			
		||||
 | 
			
		||||
	call_hooks('lockview_content', $item);
 | 
			
		||||
 | 
			
		||||
	if($item['uid'] != local_user()) {
 | 
			
		||||
		echo t('Remote privacy information not available.') . '<br />';
 | 
			
		||||
		killme();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	if(($item['private'] == 1) && (! strlen($item['allow_cid'])) && (! strlen($item['allow_gid'])) 
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue