public function PuSHSubscriber::unsubscribe in Feeds 7.2
Same name and namespace in other branches
- 6 libraries/PuSHSubscriber.inc \PuSHSubscriber::unsubscribe()
- 7 libraries/PuSHSubscriber.inc \PuSHSubscriber::unsubscribe()
@todo Unsubscribe from a hub. @todo Make sure we unsubscribe with the correct topic URL as it can differ from the initial subscription URL.
Parameters
$topic_url: The URL of the topic to unsubscribe from.
$callback_url: The callback to unsubscribe.
File
- libraries/
PuSHSubscriber.inc, line 112 - Pubsubhubbub subscriber library.
Class
- PuSHSubscriber
- PubSubHubbub subscriber.
Code
public function unsubscribe($topic_url, $callback_url) {
if ($sub = $this
->subscription()) {
$this
->request($sub->hub, $sub->topic, 'unsubscribe', $callback_url);
$sub
->delete();
}
}