protected function SimplenewsSourceNode::buildFooter in Simplenews 7
Builds the themed footer.
Parameters
$format: (Optional) Set the format of this footer build, overrides the default format.
1 call to SimplenewsSourceNode::buildFooter()
- SimplenewsSourceNode::getFooterWithFormat in includes/
simplenews.source.inc - Get the footer in the specified format.
File
- includes/
simplenews.source.inc, line 745 - Contains SimplenewsSource interface and implementations.
Class
- SimplenewsSourceNode
- Simplenews source implementation based on nodes for a single subscriber.
Code
protected function buildFooter($format = NULL) {
if (empty($format)) {
$format = $this
->getFormat();
}
if ($cache = $this->cache
->get('build', 'footer:' . $format)) {
return $cache;
}
// Build and buffer message footer
$footer = theme('simplenews_newsletter_footer', array(
'build' => $this
->build($format),
'category' => $this
->getCategory(),
'context' => $this
->getTokenContext(),
'key' => $this
->getKey(),
'language' => $this
->getLanguage(),
'format' => $format,
));
$this->cache
->set('build', 'footer:' . $format, $footer);
return $footer;
}