function advpoll_has_data in Advanced Poll 7
Same name and namespace in other branches
- 7.3 includes/advpoll_helper.inc \advpoll_has_data()
- 7.2 includes/advpoll_helper.inc \advpoll_has_data()
2 calls to advpoll_has_data()
- advpoll_get_data in includes/
advpoll_helper.inc - Returns an object with a predictable structure regardless of content type. It basically saves having to extract the data in any given function that retrieves specific fields from a node.
- advpoll_get_form_data in includes/
advpoll_helper.inc - Returns an object with a predictable structure regardless of content type form state. This call returns the same data structure as the advpoll_get_data() call, only using form_state data rather than node data.
File
- includes/
advpoll_helper.inc, line 63
Code
function advpoll_has_data($options, $term) {
foreach ($options as $option) {
if ($option['value'] == $term) {
return true;
}
}
return false;
}