DoSomething/mbc-digest-email — pull request #10 by DeeZone (2014-07-03 23:47:58+00:00)
Title: Functional solution

This pull request got a little out of control due to hacking away at a working solution. It should have been broken up into separate requests but...

- temp solution to use new Drupal campaign endpoint that uses beta.stage without a port
- Adds Content-type and Accept to curl request
- Skips empty curl results
- Adds `filterCampaigns()` to apply logic that skips campaigns that are:
- status != closed
- type = campaign
- image not missing
- Adjust template merge_vars to support new fields.