You are here

function sharedblocks_post_render_block in Shared Blocks 7.2

Render API callback; Apply a text format to the content.

This function is assigned as an #post_render callback in sharedblocks_get_block().

1 string reference to 'sharedblocks_post_render_block'
sharedblocks_get_block in ./sharedblocks.publish.inc
Fetch a block in the same manner as _block_render_blocks().

File

./sharedblocks.publish.inc, line 185
Publish block page callbacks for the sharedblocks module.

Code

function sharedblocks_post_render_block($text, $elements) {
  if (filter_format_exists('sharedblocks_output')) {
    return check_markup($text, 'sharedblocks_output');
  }
  else {
    return $text;
  }
}