imagex/imagex_contest — pull request #3 by thomjjames (2013-11-15 13:54:42+00:00)
Title: Feature: LDC-249 - entries & voting deadline scheduling rules

## Ready State: Yes

This pull request is related to the following JIRA tickets:
https://imagex.atlassian.net/browse/LDC-249

The entry & voting deadline dates are used to create Rules Scheduler entries for the deadline dates. Then on cron run Rules Scheduler will trigger the closing of entry submissions & voting (can be separate deadline dates) on the deadline dates and send an email to the contest author saying that the deadlines have passed.

## Requirements & Dependencies

Ability to send mail from server.

## Deployment Instructions

* Merge code.
* Enable module imagex_contest
* Clear caches with `drush cache-clear all`

## Usage/Test Instructions

* Enabled views_ui (rules schedule uses it for admin UI pages)
* Make sure you set the acting uses email to an email address you can access

#### Entry Deadline

* Create a new contest with "Open For Entries" checked and a "Entry Deadline" deadline date of the previous day, save the node
* Go to /admin/config/workflow/rules/schedule and ensure a new scheduler entry was made for the new contest
* Run cron and then go back to the contest node and ensure:
** "Open For Entries" is now unchecked.
** that you received an "Entry submissions for the contest "[node:title]" are now closed" email to the email address set at the beginning

#### Voting Deadline

* On the same contest with "Open For Voting" checked and a "Voting Deadline" deadline date of the previous day, save the node
* Go to /admin/config/workflow/rules/schedule and ensure a new scheduler entry was made for the new contest
* Run cron and then go back to the contest node and ensure:
** "Open For Voting" is now unchecked.
** that you received an "Voting on the contest "[node:title]" is now closed" email to the email address set at the beginning

#### Notes

* If you repeat the steps minus running cron you should be able to uncheck the "Open for ...." checkbox and the schedule entries will be automatically deleted.
* Deadline dates can be left blank to allow contest authors to manually close entries & voting