Function ReadDraft
Reads a draft in from the user_drafts table Validates that the draft is the user''s draft Optionally loads the draft in to context or superglobal for loading in to the form
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Drafts.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Drafts.php
integer |
$id_draft |
ID of the draft to load |
integer |
$type = 0 |
Type of draft - 0 for post or 1 for PM |
boolean |
$check = true |
Validate that this draft belongs to the current user |
boolean |
$load = false |
Whether or not to load the data into variables for use on a form |
boolean|array
|
False if the data couldn't be loaded, true if it's a PM draft or an array of info about the draft if it's a post draft |