Commit b2a9a21b authored by Kevin Paxman's avatar Kevin Paxman
Browse files

Add limiter so home page block only shows upcoming events

parent ef5f3bf8
......@@ -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');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment