aboutsummaryrefslogtreecommitdiff
path: root/mod/sitepages/start.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-15 21:48:24 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-15 21:48:24 +0000
commit5eaed810d1e3b194dd01860d9ca4c86dbc50717e (patch)
tree30e709862e7b889655403247bf1c455b3add6e30 /mod/sitepages/start.php
parent7fee58e1ef7aaab02630a1c8ee3254d8c4eca383 (diff)
downloadelgg-5eaed810d1e3b194dd01860d9ca4c86dbc50717e.tar.gz
elgg-5eaed810d1e3b194dd01860d9ca4c86dbc50717e.tar.bz2
Added usage to the keywords.
Restricting keywords to userlist, loginbox, and sitestats to custom front page. git-svn-id: http://code.elgg.org/elgg/trunk@5756 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/sitepages/start.php')
-rw-r--r--mod/sitepages/start.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/mod/sitepages/start.php b/mod/sitepages/start.php
index fba466e44..f8a0ba367 100644
--- a/mod/sitepages/start.php
+++ b/mod/sitepages/start.php
@@ -188,17 +188,23 @@ function sitepages_parse_view($hook, $entity_type, $return_value, $params) {
function sitepages_ecml_keyword_hook($hook, $entity_type, $return_value, $params) {
$return_value['loginbox'] = array(
'view' => 'account/forms/login',
- 'description' => elgg_echo('sitepages:ecml:keywords:login_box')
+ 'description' => elgg_echo('sitepages:ecml:keywords:login_box'),
+ 'usage' => elgg_echo('sitepages:ecml:keywords:login_box_usage'),
+ 'restricted' => array('sitepages/custom_frontpage')
);
$return_value['userlist'] = array(
- 'view' => 'sitepages/keywords/user_list',
- 'description' => elgg_echo('sitepages:ecml:keywords:user_list')
+ 'view' => 'sitepages/keywords/userlist',
+ 'description' => elgg_echo('sitepages:ecml:keywords:userlist'),
+ 'usage' => elgg_echo('sitepages:ecml:keywords:userlist_usage'),
+ 'restricted' => array('sitepages/custom_frontpage')
);
$return_value['sitestats'] = array(
- 'view' => 'sitepages/keywords/site_stats',
- 'description' => elgg_echo('sitepages:ecml:keywords:site_stats')
+ 'view' => 'sitepages/keywords/sitestats',
+ 'description' => elgg_echo('sitepages:ecml:keywords:sitestats'),
+ 'usage' => elgg_echo('sitepages:ecml:keywords:sitestats_usage'),
+ 'restricted' => array('sitepages/custom_frontpage')
);
return $return_value;