Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WCMS
uw_ct_event
Commits
b2a9a21b
Commit
b2a9a21b
authored
Jun 16, 2015
by
Kevin Paxman
Browse files
Add limiter so home page block only shows upcoming events
parent
ef5f3bf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
uw_ct_event.module
View file @
b2a9a21b
...
...
@@ -327,6 +327,7 @@ function uw_ct_event_block_view($delta = '') {
$events
->
condition
(
'n.type'
,
'uw_event'
,
'='
);
$events
->
condition
(
'n.status'
,
1
,
'='
);
$events
->
condition
(
'n.promote'
,
1
,
'='
);
$events
->
havingCondition
(
'field_event_date_value2'
,
date
(
'Y-m-d'
),
'>='
);
$events
->
orderBy
(
'n.sticky'
);
$events
->
orderBy
(
'events.field_event_date_value'
,
'ASC'
);
$events
->
orderBy
(
'n.title'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment