You are here

public function boxes_simple::render in Boxes 6

Same name and namespace in other branches
  1. 7 plugins/boxes_simple.inc \boxes_simple::render()

Implementation of boxes_content::options_form().

Overrides boxes_box::render

File

plugins/boxes_simple.inc, line 38

Class

boxes_simple
Simple custom text box.

Code

public function render() {
  $content = '';
  if (!empty($this->options['body']) && isset($this->options['format'])) {
    $content = check_markup($this->options['body'], $this->options['format'], FALSE);
  }
  $title = isset($this->title) ? check_plain($this->title) : NULL;
  return array(
    'delta' => $this->delta,
    // Crucial.
    'title' => $title,
    'subject' => $title,
    'content' => $content,
  );
}