diff -urNp old/technorati.info new/technorati.info --- old/technorati.info Thu Jan 1 01:00:00 1970 +++ new/technorati.info Sun Dec 31 01:45:03 2006 @@ -0,0 +1,6 @@ +name = Technorati +description = Enables Technorati tags for selected content types, and pings Technorati when new content is created. +package = Pingers +dependencies = ping +version = "5.x-dev" +project = "technorati" diff -urNp old/technorati.module new/technorati.module --- old/technorati.module Sun Dec 31 01:52:28 2006 +++ new/technorati.module Sun Dec 31 01:51:41 2006 @@ -1,6 +1,4 @@ l('ping module', 'admin/modules'))), 'error'); - return; +/** + * Implementation of hook_menu(). + */ +function technorati_menu($may_cache) { + $items = array(); + if ($may_cache) { + $items[] = array( + 'path' => 'admin/settings/technorati', + 'title' => 'Technorati', + 'description' => t('Settings of the Technorati module'), + 'callback' => 'drupal_get_form', + 'callback arguments' => array('technorati_settings'), + 'access' => user_access('administer site configuration'), + ); } + return $items; +} +function technorati_settings() { $display_options = array( TECHNORATI_DISPLAY_NONE => t('None'), TECHNORATI_DISPLAY_TEASER => t('Teaser view'), @@ -64,13 +73,13 @@ function technorati_settings() { $type = TECHNORATI_NODE_TYPE . $node_type; $form['types'][$type] = array( '#type' => 'select', - '#title' => $node_name, + '#title' => $node_name->name, '#default_value' => variable_get($type, TECHNORATI_MODE_NONE), '#options' => $node_options, ); } - return $form; + return system_settings_form($form); } function technorati_form_alter($form_id, &$form) {