Index: tagadelic.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/tagadelic/Attic/tagadelic.module,v
retrieving revision 1.40
diff -u -r1.40 tagadelic.module
--- tagadelic.module	27 Feb 2008 15:32:05 -0000	1.40
+++ tagadelic.module	28 Feb 2008 16:48:45 -0000
@@ -31,6 +31,7 @@
     'page arguments' => array('tagadelic_settings'),
     'access callback' => 'user_access',
     'access arguments' => array('administer site configuration'),
+    'file' => 'tagadelic.admin.inc',
   );
   $items['tagadelic'] = array(
     'title' => 'Tags',
@@ -38,6 +39,7 @@
     'page arguments' => array(NULL),
     'access callback' => 'user_access',      
     'access arguments' => array('access content'),
+    'file' => 'tagadelic.pages.inc',
     'type' => MENU_SUGGESTED_ITEM,
   );
   $items['tagadelic/list/%tagadelic_vocs'] = array(
@@ -46,6 +48,7 @@
     'page arguments' => array(2),
     'access callback' => 'user_access',
     'access arguments' => array('access content'),
+    'file' => 'tagadelic.pages.inc',
     'type' => MENU_CALLBACK,
   );
   $items['tagadelic/chunk/%tagadelic_vocs'] = array(
@@ -54,6 +57,7 @@
     'page arguments' => array(2),
     'access callback' => 'user_access',
     'access arguments' => array('access content'),
+    'file' => 'tagadelic.pages.inc',
     'type' => MENU_SUGGESTED_ITEM,
   );
   return $items;
@@ -70,35 +74,6 @@
 }
 
 /**
- * Menu callback. Admin setting page for tagadelic.
- */
-function tagadelic_settings() {
-  $options = array('weight,asc' => t('by weight, ascending'), 'weight,desc' => t('by weight, descending'), 'title,asc' => t('by title, ascending'), 'title,desc' => t('by title, descending'), 'random,none' => t('random'));
-  $form['tagadelic_sort_order'] = array(
-    '#type' => 'radios',
-    '#title' => t('Tagadelic sort order'),
-    '#options' => $options,
-    '#default_value' => variable_get('tagadelic_sort_order', 'title,asc'),
-    '#description' => t('Determines the sort order of the tags on the freetagging page.'),
-  );
-  $form['tagadelic_page_amount'] = array(
-    '#type' => 'textfield',
-    '#size' => 5,
-    '#title' => t('Amount of tags on the pages'),
-    '#default_value' => variable_get('tagadelic_page_amount', '60'),
-    '#description' => t('The amount of tags that will show up in a cloud on the pages. Amount of tags in blocks must be configured in the block settings of the various cloud blocks.'),
-  );
-  $form['tagadelic_levels'] = array(
-    '#type' => 'textfield',
-    '#size' => 5,
-    '#title' => t('Number of levels'),
-    '#default_value' => variable_get('tagadelic_levels', 6),
-    '#description' => t('The number of levels between the least popular tags and the most popular ones. Different levels will be assigned a different class to be themed in tagadelic.css'),
-  );
-  return system_settings_form($form);
-}
-
-/**
  * menu wildcard callback
  */
 function tagadelic_vocs_load($vocs) {
@@ -112,59 +87,6 @@
 }
 
 /**
- * menu callback renders a tagadelic page
- */
-function tagadelic_page_chunk($vocs) {
-
-  if ($vocs == NULL) {
-    foreach (taxonomy_get_vocabularies(NULL) as $vocabulary) {
-      $vocs[] = $vocabulary->vid;
-    }
-  }
-
-  $tags = tagadelic_get_weighted_tags($vocs, variable_get('tagadelic_levels', 6), variable_get('tagadelic_page_amount', '60'));
-  $tags = tagadelic_sort_tags($tags);
-  $output = theme('tagadelic_weighted', $tags);
-
-  if (!$output) {
-    return drupal_not_found();
-  }
-
-  $output = "<div class=\"wrapper tagadelic\">$output</div>";
-
-  return $output;
-}
-
-/**
- * menu callback renders a tagadelic page with listed items: each voc
- */
-function tagadelic_page_list($vocs) {
-
-  if ($vocs == NULL) {
-    return drupal_not_found();
-  }
-
-  foreach ($vocs as $vid) {
-    $vocabulary = taxonomy_vocabulary_load($vid);
-
-    $tags = tagadelic_get_weighted_tags(array($vocabulary->vid), variable_get('tagadelic_levels', 6), variable_get('tagadelic_page_amount', '60'));
-    $tags = tagadelic_sort_tags($tags);
-
-    $output .= theme('tagadelic_list_box', $vocabulary, $tags);
-  }
-
-  if (!$output) {
-    return drupal_not_found();
-  }
-
-  $stylesheet = drupal_get_path('module', 'tagadelic') .'/tagadelic.css';
-  drupal_add_css($stylesheet, 'all');
-
-  $output = "<div class=\"wrapper tagadelic\">$output</div>";
-  return $output;
-}
-
-/**
  * API that returns a multidimensional array with tags given a node
  * @param $node. A node object.
  */
