diff options
Diffstat (limited to 'mod/sitepages/start.php')
-rw-r--r-- | mod/sitepages/start.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mod/sitepages/start.php b/mod/sitepages/start.php index a173dcd6f..e45abb2b6 100644 --- a/mod/sitepages/start.php +++ b/mod/sitepages/start.php @@ -134,6 +134,7 @@ function sitepages_page_handler($page) { switch ($action) { case 'edit': + admin_gatekeeper(); $title = elgg_echo('sitepages'); $content = sitepages_get_edit_section_content($page_type); @@ -185,6 +186,18 @@ function sitepages_ecml_keyword_hook($hook, $entity_type, $return_value, $params 'restricted' => array('sitepages/custom_frontpage') ); + $return_value['entity'] = array( + 'description' => elgg_echo('sitepages:ecml:keywords:entity'), + 'usage' => elgg_echo('sitepages:ecml:keywords:entity_usage'), + 'restricted' => array('sitepages/custom_frontpage') + ); + + $return_value['view'] = array( + 'description' => elgg_echo('sitepages:ecml:keywords:view'), + 'usage' => elgg_echo('sitepages:ecml:keywords:view_usage'), + 'restricted' => array('sitepages/custom_frontpage') + ); + return $return_value; } |