*/
function _params()
{
- return array();
-
+ return array(
+ 'results_url' => array(
+ 'name' => _("Results URL"),
+ 'type' => 'text',
+ 'default' => Horde::url('stories/results.php?tag_id=@id@'),
+ ),
+ );
}
function _title()
/* Get the tags */
$tags = $GLOBALS['injector']->getInstance('Jonah_Driver')->listTagInfo();
if (count($tags)) {
- $url = Horde::url('stories/results.php');
$cloud = new Horde_Core_Ui_TagCloud();
foreach ($tags as $id => $tag) {
- $cloud->addElement($tag['tag_name'], $url->copy()->add('tag_id', $id), $tag['total']);
+ $cloud->addElement($tag['tag_name'], str_replace(array('@id@', '@tag@'), array($id, $tag['tag_name']), $this->_params['results_url']), $tag['total']);
}
$html = $cloud->buildHTML();
} else {
return $html;
}
-
}