function _advpoll_converter_get_polls in Advanced Poll 7.3
Same name and namespace in other branches
- 7 advpoll_converter/advpoll_converter.admin.inc \_advpoll_converter_get_polls()
- 7.2 advpoll_converter/advpoll_converter.admin.inc \_advpoll_converter_get_polls()
Fetch available polls.
1 call to _advpoll_converter_get_polls()
- advpoll_converter_form in advpoll_converter/
advpoll_converter.admin.inc - Administrative form for converter.
File
- advpoll_converter/
advpoll_converter.admin.inc, line 86 - Advanced Poll Converter Module Admin Forms and Functions.
Code
function _advpoll_converter_get_polls() {
$result = db_query("SELECT title, nid FROM {node} WHERE type='poll'");
$options = array();
foreach ($result as $record) {
$options[$record->nid] = $record->title;
}
return $options;
}