public function twitter_pull_box::render in Twitter Pull 7
Same name and namespace in other branches
- 6.2 plugins/twitter_pull_box.inc \twitter_pull_box::render()
- 7.2 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 44
Class
- twitter_pull_box
- Simple custom text box.
Code
public function render() {
$content = twitter_pull_render($this->options['search'], NULL, $this->options['max_results']);
$title = isset($this->title) ? $this->title : NULL;
return array(
'delta' => $this->delta,
// Crucial.
'title' => $title,
'subject' => $title,
'content' => $content,
);
}