protected function SimplenewsSourceEntity::getFooterWithFormat in Simplenews 7.2
Get the footer in the specified format.
Parameters
$format: Either html or plain.
Return value
The footer for the requested format.
2 calls to SimplenewsSourceEntity::getFooterWithFormat()
- SimplenewsSourceEntity::getFooter in includes/
simplenews.source.inc - Implements SimplenewsSourceInterface::getFooter().
- SimplenewsSourceEntity::getPlainFooter in includes/
simplenews.source.inc - Implements SimplenewsSourceInterface::getPlainFooter().
File
- includes/
simplenews.source.inc, line 779 - Contains SimplenewsSource interface and implementations.
Class
- SimplenewsSourceEntity
- Default source class for entities.
Code
protected function getFooterWithFormat($format) {
// Switch to correct user and language context.
$this
->setContext();
if ($cache = $this->cache
->get('final', 'footer:' . $format)) {
return $cache;
}
$final_footer = token_replace($this
->buildFooter($format), $this
->getTokenContext(), array(
'sanitize' => FALSE,
));
$this->cache
->set('final', 'footer:' . $format, $final_footer);
$this
->resetContext();
return $final_footer;
}