mateusz/silverstripe-polls — pull request #12 by anselmdk (2012-10-08 18:21:38+00:00)
Title: updated to work w. ss3

I upgraded this to work with SS3.

For the sortable fields I'm using [SortableGridField](https://github.com/UndefinedOffset/SortableGridField), so that's a new dependency, but that should be beasy to take out.

Also, here's some basics on how to instantiate it in the `getCMSFields` method:

$polls = Poll::get();
$pollsMap = $polls->map('ID', 'Title');
$fields->push($dropdown = new DropdownField('PollID', 'Poll', $pollsMap));
$dropdown->setEmptyString('--- Select a poll ---');