aboutsummaryrefslogtreecommitdiff
path: root/mod/custom_index/index.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-19 17:05:59 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-19 17:05:59 +0000
commite8eb644876ef3a44c852a7fec157ac35a0cc18b9 (patch)
tree81c0f34bd6f08fc757cadb9784f16e31c3bd179e /mod/custom_index/index.php
parentdd2b918ab71c2ed0c05375fafed588146e48c4de (diff)
downloadelgg-e8eb644876ef3a44c852a7fec157ac35a0cc18b9.tar.gz
elgg-e8eb644876ef3a44c852a7fec157ac35a0cc18b9.tar.bz2
Custom index is deprecated by Site pages. These two provide the same functionality but in different ways, so just moving Custom Index to the plugins repo.
git-svn-id: http://code.elgg.org/elgg/trunk@6098 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/custom_index/index.php')
-rw-r--r--mod/custom_index/index.php36
1 files changed, 0 insertions, 36 deletions
diff --git a/mod/custom_index/index.php b/mod/custom_index/index.php
deleted file mode 100644
index 953e2a85b..000000000
--- a/mod/custom_index/index.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
- /**
- * Elgg custom index
- *
- * @package ElggCustomIndex
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider Ltd <info@elgg.com>
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
- // Get the Elgg engine
- require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
-
- //get required data
- set_context('search');//display results in search mode, which is list view
- //grab the latest 4 blog posts. to display more, change 4 to something else
- $blogs = elgg_list_entities(array('type' => 'object', 'subtype' => 'blog', 'limit' => 4, 'full_view' => FALSE, 'view_type_toggle' => FALSE, 'pagination' => FALSE));
- //grab the latest bookmarks
- $bookmarks = elgg_list_entities(array('type' => 'object', 'subtype' => 'bookmarks', 'limit' => 4, 'full_view' => FALSE, 'view_type_toggle' => FALSE, 'pagination' => FALSE));
- //grab the latest files
- $files = elgg_list_entities(array('type' => 'object', 'subtype' => 'file', 'limit' => 4, 'full_view' => FALSE, 'view_type_toggle' => FALSE, 'pagination' => FALSE));
- //get the newest members who have an avatar
- $newest_members = elgg_get_entities_from_metadata(array('metadata_names' => 'icontime', 'types' => 'user', 'limit' => 10));
- //newest groups
- $groups = elgg_list_entities(array(type => 'group', 'limit' => 4, 'full_view' => FALSE, 'view_type_toggle' => FALSE, 'pagination' => FALSE));
- //grab the login form
- $login = elgg_view("account/forms/login");
-
- //display the contents in our new canvas layout
- $body = elgg_view_layout('new_index',$login, $files, $newest_members, $blogs, $groups, $bookmarks);
-
- page_draw($title, $body);
-
-?> \ No newline at end of file