Function __global->cns_set_poll_closing_time
Definitions
sources/cns_polls_action3.php
- Set a topic poll's closing time according to default poll configuration on the forum.Call this after validating a topic with a poll on it.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $forum_id | AUTO_LINK | No | No | required parameter | N/A | N/A | The ID of the forum in which the topic containing the poll exists |
| $poll_id | AUTO_LINK | No | No | required parameter | N/A | N/A | The ID of the poll on which to set the closing time |
Preview
Code (PHP)
/**
* Set a topic poll's closing time according to default poll configuration on the forum.Call this after validating a topic with a poll on it.
*
* @param AUTO_LINK $forum_id The ID of the forum in which the topic containing the poll exists
* @param AUTO_LINK $poll_id The ID of the poll on which to set the closing time
*/
function cns_set_poll_closing_time(int $forum_id, int $poll_id)
* Set a topic poll's closing time according to default poll configuration on the forum.Call this after validating a topic with a poll on it.
*
* @param AUTO_LINK $forum_id The ID of the forum in which the topic containing the poll exists
* @param AUTO_LINK $poll_id The ID of the poll on which to set the closing time
*/
function cns_set_poll_closing_time(int $forum_id, int $poll_id)
