function Disqus::update_thread in Disqus 7
Updates thread.
Updates thread, specified by id and forum API key, with values described in the optional arguments.
Parameters
$thread_id: the ID of a thread belonging to the given forum
$options:
- title: the title of the thread
- slug: the per-forum-unique string used for identifying this thread in disqus.com URL’s relating to this thread. Composed of underscore-separated alphanumeric strings.
- url: the URL this thread is on, if known.
- allow_comments: whether this thread is open to new comments
Return value
Returns an empty success message.
File
- ./
disqus.php, line 236 - Provides the Disqus PHP API.
Class
- Disqus
- The Disqus PHP API.
Code
function update_thread($thread_id, array $options = array()) {
$options['thread_id'] = $thread_id;
return $this
->call('update_thread', $options, TRUE);
}