D.C. United fans make their voices heard.

Posted on

Soccer fans roar for new stadium\

Within hours of his request, e-mails began to flood Annapolis from around the world. Team officials say legislators received more than 28,000 missives that were sent through D.C. United's site, and lawmakers said servers crashed because of the volume.

\ \

![](http://img.zemanta.com/pixy.gif?x-id=bec13e68-ce3b-48bc-9f37-386ae8fd2282){.zemanta-pixie-img}

Tags: DC United

─── ✧ ─── ✦ ─── ✧ ───

More usable "Authored On" date field widget for Drupal Forms

Posted on

The default Drupal "Authored On" date field is not very usable, as it expects users to enter dates in a specific, and not very easy format.  Drupal does have better options for date input entry, from both the Date and jQuery UI modules. The Date module provides a very convenient function for using date popup widget for date entry. It's also smart enough to use jQuery UI's datepicker if the latter is installed. Add the following lines of code to your own hook_form_alter() function to make your content editors happy.

{.php style="font-family: monospace;"} // change authored on date to use jquery datepickerif (isset($form['author']['date'])){$form['author']['date']['#type'] = 'date_popup'; // prevent extra validation since its not a stringunset($form['author']['date']['#maxlength']);}

─── ✧ ─── ✦ ─── ✧ ───
─── ✧ ─── ✦ ─── ✧ ───