public function processAction()
{
if (Zend_Uri::check($_POST['topic_uri'])) {
$result = $this->_subscribe($_POST['topic_uri']);
if (!$result) {
$message = 'Subscribing to ' . $_POST['topic_uri'] . ' failed. Either the feed was not Pubsubhubbub enabled' . ' or the subscription attempt failed';
$this->_helper->getHelper('FlashMessenger')->addMessage($message);
} else {
$this->_helper->getHelper('FlashMessenger')->addMessage('Subscription Completed');
}
} else {
$this->_helper->getHelper('FlashMessenger')->addMessage('Topic URI is invalid');
}
$this->_helper->getHelper('Redirector')->gotoUrl('/admin/subscribe');
}