You are here

public function twitter_pull_box::render in Twitter Pull 6.2

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

Implementation of boxes_box::render().

Overrides boxes_box::render

File

plugins/twitter_pull_box.inc, line 58

Class

twitter_pull_box
Simple custom text box.

Code

public function render() {
  $content = twitter_pull_render($this->options['search'], NULL, $this->options['max_results'], NULL, $this->options['rts'], $this->options['exclude_replies']);
  $title = isset($this->title) ? check_plain($this->title) : NULL;
  return array(
    'delta' => $this->delta,
    // Crucial.
    'title' => $title,
    'subject' => $title,
    'content' => $content,
  );
}