1 block_example.inc BlockExample::getContent()

Returns the rendered content of this block.

Return value

string:

Overrides Block::getContent

File

modules/examples/block_example/block_example.inc, line 34

Class

BlockExample
BlockExample extends Block

Code

function getContent() {
  if (!empty($this->settings['content'])) {
    $intro_text = t("The following is the content of the example subclass block:\n");
    $entered_content = check_markup(token_replace($this->settings['content']), $this->settings['format'], '', TRUE);
    return ($intro_text . $entered_content);
  }
}