You are here

public function twitter_pull_box::render in Twitter Pull 7.2

Same name and namespace in other branches
  1. 6.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 63
Twitter Pull Box

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, NULL, $this->options['rts'], $this->options['exclude_replies']);
  $title = isset($this->title) ? $this->title : NULL;
  return array(
    'delta' => $this->delta,
    // Crucial.
    'title' => $title,
    'subject' => $title,
    'content' => $content,
  );
}