function _advpoll_writeins_access in Advanced Poll 7.3
Same name and namespace in other branches
- 6.3 advpoll.module \_advpoll_writeins_access()
- 6 advpoll.module \_advpoll_writeins_access()
- 6.2 advpoll.module \_advpoll_writeins_access()
- 7 advpoll.module \_advpoll_writeins_access()
- 7.2 advpoll.module \_advpoll_writeins_access()
Writeins access callback.
Parameters
$node: An advanced poll node.
Return value
bool TRUE or FALSE.
1 string reference to '_advpoll_writeins_access'
- advpoll_menu in ./
advpoll.module - Implements hook_menu().
File
- ./
advpoll.module, line 1162
Code
function _advpoll_writeins_access($node) {
if ($node->type == 'advpoll') {
$data = advpoll_get_data($node);
return user_access('administer polls') && $data->write_in;
}
}