function SimplenewsSourceNode::getTokenContext in Simplenews 7
Implements SimplenewsSourceInterface::getTokenContext().
Overrides SimplenewsSourceInterface::getTokenContext
5 calls to SimplenewsSourceNode::getTokenContext()
- SimplenewsSourceNode::buildFooter in includes/
simplenews.source.inc - Builds the themed footer.
- SimplenewsSourceNode::getBodyWithFormat in includes/
simplenews.source.inc - Get the body with the requested format.
- SimplenewsSourceNode::getFooterWithFormat in includes/
simplenews.source.inc - Get the footer in the specified format.
- SimplenewsSourceNode::getHeaders in includes/
simplenews.source.inc - Implements SimplenewsSourceInterface::getHeaders().
- SimplenewsSourceNode::getSubject in includes/
simplenews.source.inc - Implements SimplenewsSourceInterface::getSubject().
File
- includes/
simplenews.source.inc, line 516 - Contains SimplenewsSource interface and implementations.
Class
- SimplenewsSourceNode
- Simplenews source implementation based on nodes for a single subscriber.
Code
function getTokenContext() {
return array(
'category' => $this
->getCategory(),
'simplenews_subscriber' => $this
->getSubscriber(),
'node' => $this
->getNode(),
);
}