Skip to content

Commit

Permalink
adding option to return the tags instead of rendering them
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Jan 27, 2013
1 parent fc0c53d commit a940a91
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Core/Contents/View/Helper/TagCloudHelper.php
Expand Up @@ -66,7 +66,8 @@ public function display($tags = null, $options = array()) {
'plugin' => $this->request->params['plugin'],
'action' => 'index'
),
'named' => 'by'
'named' => 'by',
'return' => false
);
$options = array_merge($defaults, array_filter($options));

Expand Down Expand Up @@ -108,6 +109,10 @@ public function display($tags = null, $options = array()) {
) . ' ';
}

if ($options['return']) {
return $cloud;
}

return implode($options['between'], $cloud);
}

Expand Down

0 comments on commit a940a91

Please sign in to comment.