From 58e4225d365d6813c803078235fcfc9f947bddef Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 15 Jul 2010 18:07:26 +0000 Subject: Parsing pages views for ecml. git-svn-id: http://code.elgg.org/elgg/trunk@6717 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/pages/start.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/mod/pages/start.php b/mod/pages/start.php index cdd3866ba..8f4e3b5e2 100644 --- a/mod/pages/start.php +++ b/mod/pages/start.php @@ -62,6 +62,9 @@ function pages_init() { 'access_id' => 'access', 'write_access_id' => 'access', ); + + // register ecml views to parse + register_plugin_hook('get_views', 'ecml', 'pages_ecml_views_hook'); } function pages_url($entity) { @@ -325,6 +328,21 @@ function pages_container_permission_check($hook, $entity_type, $returnvalue, $pa } +/** + * Return views to parse for pages. + * + * @param unknown_type $hook + * @param unknown_type $entity_type + * @param unknown_type $return_value + * @param unknown_type $params + */ +function pages_ecml_views_hook($hook, $entity_type, $return_value, $params) { + $return_value['object/page'] = elgg_echo('item:object:page'); + $return_value['object/page_top'] = elgg_echo('item:object:page_top'); + + return $return_value; +} + // write permission plugin hooks register_plugin_hook('permissions_check', 'object', 'pages_write_permission_check'); register_plugin_hook('container_permissions_check', 'object', 'pages_container_permission_check'); -- cgit v1.2.3