aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorKevin Jardine <kevinjardine@yahoo.com>2011-06-29 22:49:49 -0700
committerKevin Jardine <kevinjardine@yahoo.com>2011-06-29 22:49:49 -0700
commit52ddfd1b76cb3e5fbb2a31eb5a3c738bb0d61b54 (patch)
tree57933cc7cd122d59867191f6fbca5d3b5041d5b1 /views/default
parent0a013cd9833a20d3b6334d80dba581bbbb2ce756 (diff)
parentb92a38c8a696db700beafab2d1538bd74c302d94 (diff)
downloadelgg-52ddfd1b76cb3e5fbb2a31eb5a3c738bb0d61b54.tar.gz
elgg-52ddfd1b76cb3e5fbb2a31eb5a3c738bb0d61b54.tar.bz2
Merge pull request #2 from cash/1.7_and_above
removing functions deprecated in 1.7
Diffstat (limited to 'views/default')
-rw-r--r--views/default/event_calendar/forms/add_to_group.php18
-rw-r--r--views/default/event_calendar/forms/manage_event.php2
2 files changed, 16 insertions, 4 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;
diff --git a/views/default/event_calendar/forms/manage_event.php b/views/default/event_calendar/forms/manage_event.php
index 35b9dba71..f9d78e3f4 100644
--- a/views/default/event_calendar/forms/manage_event.php
+++ b/views/default/event_calendar/forms/manage_event.php
@@ -11,7 +11,7 @@
*
*/
-extend_view('metatags','event_calendar/metatags');
+elgg_extend_view('metatags','event_calendar/metatags');
$body = elgg_view('event_calendar/forms/manage_event_content',$vars);