Function __global->cns_revoke_vote_in_poll
Definitions
sources/cns_polls_action2.php
- Revoke the vote by a member in a topic poll.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $topic_info | array | No | No | required parameter | N/A | N/A | The topic info from cns_read_in_topic for the topic containing the poll |
| $member_id | ?MEMBER | No | No | Null | N/A | N/A | The ID of the member from which to revoke the vote (null: the current member) |
Preview
Code (PHP)
/**
* Revoke the vote by a member in a topic poll.
*
* @param array $topic_info The topic info from cns_read_in_topic for the topic containing the poll
* @param ?MEMBER $member_id The ID of the member from which to revoke the vote (null: the current member)
*/
function cns_revoke_vote_in_poll(array $topic_info, ?int $member_id = null)
* Revoke the vote by a member in a topic poll.
*
* @param array $topic_info The topic info from cns_read_in_topic for the topic containing the poll
* @param ?MEMBER $member_id The ID of the member from which to revoke the vote (null: the current member)
*/
function cns_revoke_vote_in_poll(array $topic_info, ?int $member_id = null)
