I think it is useful to see a forecast for a specific event's date.
I figured this could be "simply" hooked into the date formatter, adding an extra format option for every existing date format.
Then, the forecast data can be filtered to only data for the CCK date field's date, and the single date's forecast can be output along with the date.
I have a simple prototype of this working, as a separate module for ease of deployment currently.
I am uploading the sample module here (see attached file nws_weather_date_cck.zip), for lack of a better way to release it or present it for comment.
Perhaps the formatter hooks themselves could simply be worked into the main nws_weather module (conditionally, if CCK and CCK date are installed, I suppose), if this is deemed a useful feature.
Anyway, I have not done so much release-worthy coding within drupal, so this may be poorly written. I am open to any constructive criticism. I just saw it as a good way to help suggest something is to provide at least a prototype.
Thanks,
Rob O'Connell
| Comment | File | Size | Author |
|---|---|---|---|
| nws_weather_date_cck.zip | 1.37 KB | robert.oconnell |
Comments
Comment #1
dwaine commentedHi Rob,
I'm sorry that I've not tended to this feature request in a timely manner.
I have to admit I was surprised at the method you chose to accomplish your goal of getting a specific date one day forecast. I would have expected most coders to access the exposed function and provide a specific date range. If we were to modify the code to allow the functionality you have created we would probably look at adding additional fields to the admin form.
Comment #2
dwaine commented