aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-23 17:21:10 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-23 17:21:10 +0000
commit913466084496c5b3a561f632fb6eb8697ed49dbb (patch)
tree9f1870c41d235f057ff4a0570dabc238ee2eed74
parentf13ffaf15ac87e1a465167c02edf374e3683e828 (diff)
downloadelgg-913466084496c5b3a561f632fb6eb8697ed49dbb.tar.gz
elgg-913466084496c5b3a561f632fb6eb8697ed49dbb.tar.bz2
Added a plugin hook and translations for previous.
git-svn-id: https://code.elgg.org/elgg/trunk@707 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/access.php2
-rw-r--r--languages/en.php8
2 files changed, 10 insertions, 0 deletions
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
@@ -34,6 +34,14 @@
'passwordagain' => "Password (again for verification)",
/**
+ * Access
+ */
+
+ 'PRIVATE' => "Private",
+ 'LOGGED_IN' => "Logged in users",
+ 'PUBLIC' => "Public",
+
+ /**
* Dashboard
*/