aboutsummaryrefslogtreecommitdiff
path: root/models/model.php
diff options
context:
space:
mode:
authorMatt Beckett <beck24@gmail.com>2012-07-03 12:54:06 -0600
committerMatt Beckett <beck24@gmail.com>2012-07-03 12:54:06 -0600
commitbd6840a34cd9d3b3afabf3f6c977f8cea5a32662 (patch)
treec612203a30903b28069097a15ed0ee11e2dde373 /models/model.php
parent2d605dc207541121f02fda9893509acb8e605212 (diff)
downloadelgg-bd6840a34cd9d3b3afabf3f6c977f8cea5a32662.tar.gz
elgg-bd6840a34cd9d3b3afabf3f6c977f8cea5a32662.tar.bz2
removed old widget file
Allows calendar widget to be useful in groups context
Diffstat (limited to 'models/model.php')
-rw-r--r--models/model.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/model.php b/models/model.php
index 2752626bc..ba1393a8c 100644
--- a/models/model.php
+++ b/models/model.php
@@ -1150,12 +1150,12 @@ function event_calendar_security_fields() {
return "__elgg_token=$token&__elgg_ts=$ts";
}
-function event_calendar_get_events_for_group($group_guid) {
+function event_calendar_get_events_for_group($group_guid, $limit = 0) {
$options = array(
'type' => 'object',
'subtype' => 'event_calendar',
'container_guid' => $group_guid,
- 'limit' => 0,
+ 'limit' => $limit,
);
return elgg_get_entities($options);
}