? 68652.amount.per.cloud.patch Index: tagadelic.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/tagadelic/tagadelic.module,v retrieving revision 1.28 diff -u -F^f -r1.28 tagadelic.module --- tagadelic.module 19 Jun 2006 14:00:24 -0000 1.28 +++ tagadelic.module 23 Jun 2006 07:52:55 -0000 @@ -72,6 +72,13 @@ function tagadelic_settings() { '#default_value' => variable_get('tagadelic_sort_order', 'title,asc'), '#description' => t('Determines the sort order of the tags on the freetagging page.'), ); + $form['tagadelic_sort_order'] = array( + '#type' => 'textfield', + '#title' => t('Amount of tags'), + '#options' => $options, + '#default_value' => variable_get('tagadelic_page_amount', '60'), + '#description' => t('The amount of tags that will show up in a cloud.'), + ); return $form; } @@ -93,7 +100,7 @@ function tagadelic_page_chunk() { } } - $output = theme('tagadelic_weighted',tagadelic_get_weighted_tags($vocs)); + $output = theme('tagadelic_weighted',tagadelic_get_weighted_tags($vocs, 6, variable_get('tagadelic_page_amount', '60'))); if (!$output) { return drupal_not_found(); @@ -125,7 +132,7 @@ function tagadelic_page_list() { if ($vocabulary->description) { $output .= theme("box", NULL, $vocabulary->description); } - $output .= theme('box', $vocabulary->name, theme('tagadelic_weighted', tagadelic_get_weighted_tags(array($vocabulary->vid)))); + $output .= theme('box', $vocabulary->name, theme('tagadelic_weighted', tagadelic_get_weighted_tags(array($vocabulary->vid), 6, variable_get('tagadelic_page_amount', '60')))); } if (!$output) {