aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorJerome Bakker <jeabakker@coldtrick.com>2012-10-03 14:02:11 +0200
committerJerome Bakker <jeabakker@coldtrick.com>2012-10-03 14:02:11 +0200
commit949a3f0c2ea1804577ff69d92f811ced71a79976 (patch)
tree0817ea4d6a936fb3a6493c6ff34a06b6d3e691c7 /mod
parent766fe8ebbcc600982dddce4d93b15b65a7b8c1fb (diff)
downloadelgg-949a3f0c2ea1804577ff69d92f811ced71a79976.tar.gz
elgg-949a3f0c2ea1804577ff69d92f811ced71a79976.tar.bz2
correct singual usage of type in elgg_get_entities_* functions
Diffstat (limited to 'mod')
-rw-r--r--mod/custom_index/index.php2
-rw-r--r--mod/file/pages/file/owner.php2
-rw-r--r--mod/file/pages/file/search.php2
-rw-r--r--mod/file/pages/file/world.php2
-rw-r--r--mod/groups/lib/groups.php4
-rw-r--r--mod/groups/start.php2
-rw-r--r--mod/groups/views/default/groups/sidebar/featured.php2
-rw-r--r--mod/groups/views/default/groups/sidebar/members.php2
-rw-r--r--mod/notifications/actions/groupsave.php2
-rw-r--r--mod/notifications/groups.php2
-rw-r--r--mod/notifications/index.php2
-rw-r--r--mod/notifications/views/default/forms/notificationsettings/groupsave.php2
-rw-r--r--mod/notifications/views/default/notifications/subscriptions/forminternals.php2
-rw-r--r--mod/pages/pages/pages/owner.php2
-rw-r--r--mod/pages/pages/pages/world.php2
-rw-r--r--mod/reportedcontent/views/default/admin/administer_utilities/reportedcontent.php2
-rw-r--r--mod/reportedcontent/views/default/widgets/reportedcontent/content.php2
-rw-r--r--mod/thewire/views/default/thewire/profile_status.php2
18 files changed, 19 insertions, 19 deletions
diff --git a/mod/custom_index/index.php b/mod/custom_index/index.php
index 53990a006..05771f576 100644
--- a/mod/custom_index/index.php
+++ b/mod/custom_index/index.php
@@ -31,7 +31,7 @@ $files = elgg_list_entities($list_params);
//get the newest members who have an avatar
$newest_members = elgg_list_entities_from_metadata(array(
'metadata_names' => 'icontime',
- 'types' => 'user',
+ 'type' => 'user',
'limit' => 10,
'full_view' => false,
'pagination' => false,
diff --git a/mod/file/pages/file/owner.php b/mod/file/pages/file/owner.php
index fb87af1b2..1409a404e 100644
--- a/mod/file/pages/file/owner.php
+++ b/mod/file/pages/file/owner.php
@@ -36,7 +36,7 @@ $title = elgg_echo("file:user", array($owner->name));
// List files
$content = elgg_list_entities(array(
- 'types' => 'object',
+ 'type' => 'object',
'subtypes' => 'file',
'container_guid' => $owner->guid,
'limit' => 10,
diff --git a/mod/file/pages/file/search.php b/mod/file/pages/file/search.php
index 402a28933..35f8a7db7 100644
--- a/mod/file/pages/file/search.php
+++ b/mod/file/pages/file/search.php
@@ -74,7 +74,7 @@ if ($listtype == "gallery") {
}
$params = array(
- 'types' => 'object',
+ 'type' => 'object',
'subtypes' => 'file',
'container_guid' => $page_owner_guid,
'limit' => $limit,
diff --git a/mod/file/pages/file/world.php b/mod/file/pages/file/world.php
index 770dfd6e8..8cf8ad138 100644
--- a/mod/file/pages/file/world.php
+++ b/mod/file/pages/file/world.php
@@ -14,7 +14,7 @@ $limit = get_input("limit", 10);
$title = elgg_echo('file:all');
$content = elgg_list_entities(array(
- 'types' => 'object',
+ 'type' => 'object',
'subtypes' => 'file',
'limit' => $limit,
'full_view' => FALSE
diff --git a/mod/groups/lib/groups.php b/mod/groups/lib/groups.php
index 505cacd01..a9eb6e843 100644
--- a/mod/groups/lib/groups.php
+++ b/mod/groups/lib/groups.php
@@ -79,7 +79,7 @@ function groups_search_page() {
$params = array(
'metadata_name' => 'interests',
'metadata_value' => $tag,
- 'types' => 'group',
+ 'type' => 'group',
'full_view' => FALSE,
);
$content = elgg_list_entities_from_metadata($params);
@@ -351,7 +351,7 @@ function groups_handle_members_page($guid) {
'relationship' => 'member',
'relationship_guid' => $group->guid,
'inverse_relationship' => true,
- 'types' => 'user',
+ 'type' => 'user',
'limit' => 20,
));
diff --git a/mod/groups/start.php b/mod/groups/start.php
index c591410c5..9689802eb 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -979,7 +979,7 @@ function discussion_reply_notifications($event, $type, $annotation) {
'relationship' => 'notify' . $method,
'relationship_guid' => $topic->getContainerGUID(),
'inverse_relationship' => true,
- 'types' => 'user',
+ 'type' => 'user',
'limit' => 0,
));
diff --git a/mod/groups/views/default/groups/sidebar/featured.php b/mod/groups/views/default/groups/sidebar/featured.php
index 8bd51ab5c..f3f8f8d2d 100644
--- a/mod/groups/views/default/groups/sidebar/featured.php
+++ b/mod/groups/views/default/groups/sidebar/featured.php
@@ -8,7 +8,7 @@
$featured_groups = elgg_get_entities_from_metadata(array(
'metadata_name' => 'featured_group',
'metadata_value' => 'yes',
- 'types' => 'group',
+ 'type' => 'group',
'limit' => 10,
));
diff --git a/mod/groups/views/default/groups/sidebar/members.php b/mod/groups/views/default/groups/sidebar/members.php
index 11273d0e6..1199a0c34 100644
--- a/mod/groups/views/default/groups/sidebar/members.php
+++ b/mod/groups/views/default/groups/sidebar/members.php
@@ -20,7 +20,7 @@ $body = elgg_list_entities_from_relationship(array(
'relationship' => 'member',
'relationship_guid' => $vars['entity']->guid,
'inverse_relationship' => true,
- 'types' => 'user',
+ 'type' => 'user',
'limit' => $limit,
'list_type' => 'gallery',
'gallery_class' => 'elgg-gallery-users',
diff --git a/mod/notifications/actions/groupsave.php b/mod/notifications/actions/groupsave.php
index 7838f7e63..c646c1885 100644
--- a/mod/notifications/actions/groupsave.php
+++ b/mod/notifications/actions/groupsave.php
@@ -21,7 +21,7 @@ $groups = array();
$options = array(
'relationship' => 'member',
'relationship_guid' => $user->guid,
- 'types' => 'group',
+ 'type' => 'group',
'limit' => 9999,
);
if ($groupmemberships = elgg_get_entities_from_relationship($options)) {
diff --git a/mod/notifications/groups.php b/mod/notifications/groups.php
index 3347d4054..d29c43e1f 100644
--- a/mod/notifications/groups.php
+++ b/mod/notifications/groups.php
@@ -28,7 +28,7 @@ $people = array();
$groupmemberships = elgg_get_entities_from_relationship(array(
'relationship' => 'member',
'relationship_guid' => $user->guid,
- 'types' => 'group',
+ 'type' => 'group',
'limit' => 9999,
));
diff --git a/mod/notifications/index.php b/mod/notifications/index.php
index cd1857f04..ff03cb274 100644
--- a/mod/notifications/index.php
+++ b/mod/notifications/index.php
@@ -27,7 +27,7 @@ $people = array();
if ($people_ents = elgg_get_entities_from_relationship(array(
'relationship' => 'notify',
'relationship_guid' => $user->guid,
- 'types' => 'user',
+ 'type' => 'user',
'limit' => 99999,
))) {
diff --git a/mod/notifications/views/default/forms/notificationsettings/groupsave.php b/mod/notifications/views/default/forms/notificationsettings/groupsave.php
index 168639ab2..64db8f533 100644
--- a/mod/notifications/views/default/forms/notificationsettings/groupsave.php
+++ b/mod/notifications/views/default/forms/notificationsettings/groupsave.php
@@ -15,7 +15,7 @@ foreach ($NOTIFICATION_HANDLERS as $method => $foo) {
$subsbig[$method] = elgg_get_entities_from_relationship(array(
'relationship' => 'notify' . $method,
'relationship_guid' => $user->guid,
- 'types' => 'group',
+ 'type' => 'group',
'limit' => 99999,
));
$tmparray = array();
diff --git a/mod/notifications/views/default/notifications/subscriptions/forminternals.php b/mod/notifications/views/default/notifications/subscriptions/forminternals.php
index 11f266303..57fa62405 100644
--- a/mod/notifications/views/default/notifications/subscriptions/forminternals.php
+++ b/mod/notifications/views/default/notifications/subscriptions/forminternals.php
@@ -31,7 +31,7 @@ foreach($NOTIFICATION_HANDLERS as $method => $foo) {
$subsbig[$method] = elgg_get_entities_from_relationship(array(
'relationship' => 'notify' . $method,
'relationship_guid' => $user->guid,
- 'types' => 'user',
+ 'type' => 'user',
'limit' => 99999,
));
}
diff --git a/mod/pages/pages/pages/owner.php b/mod/pages/pages/pages/owner.php
index b29332ee1..a061225e2 100644
--- a/mod/pages/pages/pages/owner.php
+++ b/mod/pages/pages/pages/owner.php
@@ -20,7 +20,7 @@ elgg_push_breadcrumb($owner->name);
elgg_register_title_button();
$content = elgg_list_entities(array(
- 'types' => 'object',
+ 'type' => 'object',
'subtypes' => 'page_top',
'container_guid' => elgg_get_page_owner_guid(),
'full_view' => false,
diff --git a/mod/pages/pages/pages/world.php b/mod/pages/pages/pages/world.php
index e6a705b6b..e5a29eb63 100644
--- a/mod/pages/pages/pages/world.php
+++ b/mod/pages/pages/pages/world.php
@@ -13,7 +13,7 @@ elgg_push_breadcrumb(elgg_echo('pages'));
elgg_register_title_button();
$content = elgg_list_entities(array(
- 'types' => 'object',
+ 'type' => 'object',
'subtypes' => 'page_top',
'full_view' => false,
));
diff --git a/mod/reportedcontent/views/default/admin/administer_utilities/reportedcontent.php b/mod/reportedcontent/views/default/admin/administer_utilities/reportedcontent.php
index 32f108312..c37761f32 100644
--- a/mod/reportedcontent/views/default/admin/administer_utilities/reportedcontent.php
+++ b/mod/reportedcontent/views/default/admin/administer_utilities/reportedcontent.php
@@ -5,7 +5,7 @@
* @package ElggReportedContent
*/
-$list = elgg_list_entities(array('types' => 'object', 'subtypes' => 'reported_content'));
+$list = elgg_list_entities(array('type' => 'object', 'subtypes' => 'reported_content'));
if (!$list) {
$list = '<p class="mtm">' . elgg_echo('reportedcontent:none') . '</p>';
}
diff --git a/mod/reportedcontent/views/default/widgets/reportedcontent/content.php b/mod/reportedcontent/views/default/widgets/reportedcontent/content.php
index 4c6595653..d6af8e87b 100644
--- a/mod/reportedcontent/views/default/widgets/reportedcontent/content.php
+++ b/mod/reportedcontent/views/default/widgets/reportedcontent/content.php
@@ -4,7 +4,7 @@
*/
$list = elgg_list_entities(array(
- 'types' => 'object',
+ 'type' => 'object',
'subtypes' => 'reported_content',
'limit' => $vars['entity']->num_display,
'pagination' => false,
diff --git a/mod/thewire/views/default/thewire/profile_status.php b/mod/thewire/views/default/thewire/profile_status.php
index b5d9dbd80..ef0d550d2 100644
--- a/mod/thewire/views/default/thewire/profile_status.php
+++ b/mod/thewire/views/default/thewire/profile_status.php
@@ -9,7 +9,7 @@ $owner = $vars['entity']->guid;
//grab the user's latest from the wire
$params = array(
- 'types' => 'object',
+ 'type' => 'object',
'subtypes' => 'thewire',
'owner_guid' => $owner,
'limit' => 1,