aboutsummaryrefslogtreecommitdiff
path: root/views/default/event_calendar
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-06-29 21:34:30 -0400
committercash <cash.costello@gmail.com>2011-06-29 21:34:30 -0400
commitb92a38c8a696db700beafab2d1538bd74c302d94 (patch)
tree57933cc7cd122d59867191f6fbca5d3b5041d5b1 /views/default/event_calendar
parentb1ef9493829d407f87b8cc14810ccdac07d345a8 (diff)
downloadelgg-b92a38c8a696db700beafab2d1538bd74c302d94.tar.gz
elgg-b92a38c8a696db700beafab2d1538bd74c302d94.tar.bz2
replaced all uses of deprecated get_entities* functions
Diffstat (limited to 'views/default/event_calendar')
-rw-r--r--views/default/event_calendar/forms/add_to_group.php18
1 files changed, 15 insertions, 3 deletions
diff --git a/views/default/event_calendar/forms/add_to_group.php b/views/default/event_calendar/forms/add_to_group.php
index fc77495e1..07e2e8b33 100644
--- a/views/default/event_calendar/forms/add_to_group.php
+++ b/views/default/event_calendar/forms/add_to_group.php
@@ -10,16 +10,28 @@ $event_container = $vars['event']->container_guid;
// get the list of all groups:
if (isadminloggedin()) {
- $groups = get_entities("group","",0,"",5000);
+ $groups = elgg_get_entities(array(
+ 'type' => 'group',
+ 'limit' => 5000,
+ ));
} else {
- $groups = get_entities("group","",get_loggedin_userid(),"",5000);
+ $groups = elgg_get_entities(array(
+ 'type' => 'group',
+ 'owner_guid' => get_loggedin_userid(),
+ 'limit' => 5000,
+ ));
}
// split the group list into two lists
$add_options = array();
$remove_options = array();
-$remove_group = get_entities_from_relationship("display_on_group",$event_id,FALSE,"","",0,"",5000);
+$remove_group = elgg_get_entities_from_relationship(array(
+ 'relationship' => 'display_on_group',
+ 'relationship_guid' => $event_id,
+ 'inverse_relationship' => FALSE,
+ 'limit' => 5000,
+));
$remove_group_ids = array();
foreach ($remove_group as $group) {
$remove_group_ids[] = $group->guid;