From 913466084496c5b3a561f632fb6eb8697ed49dbb Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 23 May 2008 17:21:10 +0000 Subject: Added a plugin hook and translations for previous. git-svn-id: https://code.elgg.org/elgg/trunk@707 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/access.php | 2 ++ languages/en.php | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/engine/lib/access.php b/engine/lib/access.php index 46e8b2e77..e39a9f165 100644 --- a/engine/lib/access.php +++ b/engine/lib/access.php @@ -119,6 +119,8 @@ $tmp_access_array[$group->id] = elgg_echo($group->name); } + $tmp_access_array = trigger_plugin_hook('access','user',array('user_id' => $user_id, 'site_id' => $site_id),$tmp_access_array); + $access_array[$user_id] = $tmp_access_array; } diff --git a/languages/en.php b/languages/en.php index 2a5b21086..1e3f34885 100644 --- a/languages/en.php +++ b/languages/en.php @@ -33,6 +33,14 @@ 'password' => "Password", 'passwordagain' => "Password (again for verification)", + /** + * Access + */ + + 'PRIVATE' => "Private", + 'LOGGED_IN' => "Logged in users", + 'PUBLIC' => "Public", + /** * Dashboard */ -- cgit v1.2.3