diff -urNp /home/lordrich/york/drupal-current/modules/tagadelic/tagadelic.info ./tagadelic.info --- /home/lordrich/york/drupal-current/modules/tagadelic/tagadelic.info 1970-01-01 01:00:00.000000000 +0100 +++ ./tagadelic.info 2006-12-09 11:47:00.000000000 +0000 @@ -0,0 +1,3 @@ +; $Id$ +name = Tagadelic +description = Tagadelic is a small module, without any databases, or configuration, that generates a page with weighted tags diff -urNp /home/lordrich/york/drupal-current/modules/tagadelic/tagadelic.module ./tagadelic.module --- /home/lordrich/york/drupal-current/modules/tagadelic/tagadelic.module 2006-06-14 02:01:53.000000000 +0100 +++ ./tagadelic.module 2006-12-09 11:56:42.000000000 +0000 @@ -38,6 +38,13 @@ function tagadelic_menu($may_cache) { 'callback' => 'tagadelic_page_chunk', 'access' => user_access('access content'), 'type' => MENU_CALLBACK); + $items[] = array('path' => 'admin/settings/tagadelic', + 'title' => t('Tagadelic'), + 'description' => t('Describes what the settings generally do.'), + 'callback' => 'drupal_get_form', + 'callback arguments' => 'tagadelic_admin_settings', + 'access' => user_access('administer site configuration'), + 'type' => MENU_NORMAL_ITEM); foreach (taxonomy_get_vocabularies($type = NULL) as $vocabulary) { $items[] = array('title' => $vocabulary->name, 'path' => "tagadelic/chunk/$vocabulary->vid", @@ -63,7 +70,7 @@ function tagadelic_nodeapi($node, $op) { /** * Implementation of hook_settings */ -function tagadelic_settings() { +function tagadelic_admin_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', @@ -72,7 +79,7 @@ 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.'), ); - return $form; + return system_settings_form($form); } /** @@ -132,7 +139,7 @@ function tagadelic_page_list() { return drupal_not_found(); } - drupal_set_html_head(''); + drupal_add_css(drupal_get_path('module', 'module-name') .'/tagadelic.css'); $output = "
$output
"; print theme('page', $output);