Merge pull request #510 from fermionic/lockview-plugin-support

allow changing the lockview content with a plugin
This commit is contained in:
fermionic 2012-10-10 07:04:08 -07:00
commit 14d8033e54

View file

@ -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']))