Function __global->send_pt_notification
Definitions
sources/cns_topics_action2.php
- Send a new-PT notification.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: N/A
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$post_id | AUTO_LINK | required parameter | N/A | N/A | The ID of the post made |
$subject | SHORT_TEXT | required parameter | N/A | N/A | PT title |
$topic_id | AUTO_LINK | required parameter | N/A | N/A | ID of the topic |
$to_id | MEMBER | required parameter | N/A | N/A | Member getting the PT |
$from_id | ?MEMBER | Null | N/A | N/A | Member posting the PT (null: current member) |
$post_comcode | ?string | Null | N/A | N/A | Post text (null: unknown, lookup from $post_id) |
$mark_unread | boolean | False | N/A | N/A | Whether to also mark the topic as unread |