diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-30 19:53:43 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-30 19:53:43 +0000 |
commit | 1a5afcb864705a0209fe10cfa17fb6cc6edc90c9 (patch) | |
tree | 1a4e964046a8666d7f4169bb75a8d37ca6636384 /mod/sitepages/start.php | |
parent | 9e4a304bf5e6561a12c60ffbfcd110d76c6cb516 (diff) | |
download | elgg-1a5afcb864705a0209fe10cfa17fb6cc6edc90c9.tar.gz elgg-1a5afcb864705a0209fe10cfa17fb6cc6edc90c9.tar.bz2 |
Updated README.txt for new ECML. Moved settings to site category.
git-svn-id: http://code.elgg.org/elgg/trunk@6599 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/sitepages/start.php')
-rw-r--r-- | mod/sitepages/start.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mod/sitepages/start.php b/mod/sitepages/start.php index 9f9bc1441..eb5fcf763 100644 --- a/mod/sitepages/start.php +++ b/mod/sitepages/start.php @@ -25,7 +25,7 @@ function sitepages_init() { require_once(dirname(__FILE__) . '/sitepages_functions.php'); global $CONFIG; - + // Extend CSS elgg_extend_view('css', 'sitepages/css'); @@ -49,11 +49,13 @@ function sitepages_init() { // define our own ecml keywords and views register_plugin_hook('get_keywords', 'ecml', 'sitepages_ecml_keyword_hook'); register_plugin_hook('get_views', 'ecml', 'sitepages_ecml_views_hook'); - + // hook into the walled garden pages register_plugin_hook('public_pages', 'walled_garden', 'sitepages_public_pages'); register_action('settings/sitepages/save', FALSE, "{$CONFIG->pluginspath}sitepages/actions/edit_settings.php"); + + elgg_add_admin_submenu_item('sitepages', elgg_echo('sitepages'), 'site'); } /** @@ -174,7 +176,7 @@ function sitepages_ecml_keyword_hook($hook, $entity_type, $return_value, $params // 'restricted' => array('sitepages/custom_frontpage') // ); - $return_value['entity'] = array( + $return_value['entities'] = array( 'description' => elgg_echo('sitepages:ecml:keywords:entity:desc'), 'usage' => elgg_echo('sitepages:ecml:keywords:entity:usage'), 'restricted' => array('sitepages/custom_frontpage') @@ -207,7 +209,7 @@ function sitepages_public_pages($hook, $type, $return_value, $params) { $return_value[] = 'pg/sitepages/read/About'; $return_value[] = 'pg/sitepages/read/Terms'; $return_value[] = 'pg/sitepages/read/Privacy'; - + return $return_value; } |