From 5eaed810d1e3b194dd01860d9ca4c86dbc50717e Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 15 Apr 2010 21:48:24 +0000 Subject: 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 --- mod/sitepages/start.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'mod/sitepages/start.php') 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; -- cgit v1.2.3