aboutsummaryrefslogtreecommitdiff
path: root/mod/embed/embed.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-02 16:50:03 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-02 16:50:03 +0000
commite79810c63fca3d572aeb800bdc4b3c5de964934f (patch)
tree76baa7fbdb5086f4a253dcdeb7bdd6e333f98afb /mod/embed/embed.php
parent05240f5e60bc20c325a424f6ceca57b4fb8c087e (diff)
downloadelgg-e79810c63fca3d572aeb800bdc4b3c5de964934f.tar.gz
elgg-e79810c63fca3d572aeb800bdc4b3c5de964934f.tar.bz2
Removing unused views and files from embed.
git-svn-id: http://code.elgg.org/elgg/trunk@6327 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/embed/embed.php')
-rw-r--r--mod/embed/embed.php35
1 files changed, 0 insertions, 35 deletions
diff --git a/mod/embed/embed.php b/mod/embed/embed.php
deleted file mode 100644
index 09b3ac29b..000000000
--- a/mod/embed/embed.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-// This page can only be run from within the Elgg framework
-if (!is_callable('elgg_view')) exit;
-
-// Get the name of the form field we need to inject into
-$internalname = get_input('internalname');
-
-if (!isloggedin()) exit;
-
-global $SESSION;
-
-$offset = (int) get_input('offset',0);
-$simpletype = get_input('simpletype');
-$entity_types = array('object' => array('file'));
-
-if (empty($simpletype)) {
- $count = elgg_get_entities(array('type' => 'object', 'subtype' => 'file', 'owner_guid' => $SESSION['user']->guid, 'count' => TRUE));
- $entities = elgg_get_entities(array('type' => 'object', 'subtype' => 'file', 'owner_guid' => $SESSION['user']->guid, 'limit' => 6, 'offset' => $offset));
-} else {
- $count = elgg_get_entities_from_metadata(array('metadata_name' => 'simpletype', 'metadata_value' => $simpletype, 'types' => 'object', 'subtypes' => 'file', 'owner_guid' => $SESSION['user']->guid, 'limit' => 6, 'offset' => $offset, 'count' => TRUE));
- $entities = elgg_get_entities_from_metadata(array('metadata_name' => 'simpletype', 'metadata_value' => $simpletype, 'types' => 'object', 'subtypes' => 'file', 'owner_guid' => $SESSION['user']->guid, 'limit' => 6, 'offset' => $offset));
-}
-
-$types = get_tags(0, 10, 'simpletype', 'object', 'file', $SESSION['user']->guid);
-
-// Echo the embed view
-echo elgg_view('embed/media', array(
- 'entities' => $entities,
- 'internalname' => $internalname,
- 'offset' => $offset,
- 'count' => $count,
- 'simpletype' => $simpletype,
- 'limit' => 6,
- 'simpletypes' => $types,
- ));