diff options
author | Kevin Jardine <kevinjardine@yahoo.com> | 2012-07-17 08:57:37 -0700 |
---|---|---|
committer | Kevin Jardine <kevinjardine@yahoo.com> | 2012-07-17 08:57:37 -0700 |
commit | 86d154541f9cf1de74f79cae6c1b05b3214bdca8 (patch) | |
tree | 46475df7579e0bf12c7bff62c3e125b16c641247 /models/model.php | |
parent | 5c7dcf2a382479a4f9cf7eafeaa4eb30faed440d (diff) | |
parent | 190a81e721df6efb1d051830c1ee852c1fe7b069 (diff) | |
download | elgg-86d154541f9cf1de74f79cae6c1b05b3214bdca8.tar.gz elgg-86d154541f9cf1de74f79cae6c1b05b3214bdca8.tar.bz2 |
Merge pull request #33 from beck24/group-widget
Allows calendar widget to be useful in groups context
Diffstat (limited to 'models/model.php')
-rw-r--r-- | models/model.php | 4 |
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); } |