You are here

public function PuSHSubscriber::subscribed in Feeds 6

Same name and namespace in other branches
  1. 7.2 libraries/PuSHSubscriber.inc \PuSHSubscriber::subscribed()
  2. 7 libraries/PuSHSubscriber.inc \PuSHSubscriber::subscribed()

Determine whether this subscriber is successfully subscribed or not.

File

libraries/PuSHSubscriber.inc, line 291
Pubsubhubbub subscriber library.

Class

PuSHSubscriber
PubSubHubbub subscriber.

Code

public function subscribed() {
  if ($sub = $this
    ->subscription()) {
    if ($sub->status == 'subscribed') {
      return TRUE;
    }
  }
  return FALSE;
}