You are here

public function PuSHSubscriber::subscribed in Feeds 7

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

Determine whether this subscriber is successfully subscribed or not.

File

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

Class

PuSHSubscriber
PubSubHubbub subscriber.

Code

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