diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-07-15 18:07:26 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-07-15 18:07:26 +0000 |
commit | 58e4225d365d6813c803078235fcfc9f947bddef (patch) | |
tree | 3672f6803d9bbaf8407ff594a11391495551bce3 | |
parent | bcfbbf1b7cf2a0c96af1dfe55c919c09eceac916 (diff) | |
download | elgg-58e4225d365d6813c803078235fcfc9f947bddef.tar.gz elgg-58e4225d365d6813c803078235fcfc9f947bddef.tar.bz2 |
Parsing pages views for ecml.
git-svn-id: http://code.elgg.org/elgg/trunk@6717 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | mod/pages/start.php | 18 |
1 files changed, 18 insertions, 0 deletions
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'); |