protected function SimplenewsSourceEntity::buildFooter in Simplenews 7.2
Builds the themed footer.
Parameters
$format: (Optional) Set the format of this footer build, overrides the default format.
1 call to SimplenewsSourceEntity::buildFooter()
- SimplenewsSourceEntity::getFooterWithFormat in includes/
simplenews.source.inc - Get the footer in the specified format.
File
- includes/
simplenews.source.inc, line 734 - Contains SimplenewsSource interface and implementations.
Class
- SimplenewsSourceEntity
- Default source class for entities.
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),
'newsletter' => $this
->getNewsletter(),
'context' => $this
->getTokenContext(),
'key' => $this
->getKey(),
'language' => $this
->getLanguage(),
'format' => $format,
));
$this->cache
->set('build', 'footer:' . $format, $footer);
return $footer;
}