Index: pubcookie.module =================================================================== RCS file: /cvs/drupal/contributions/modules/pubcookie/pubcookie.module,v retrieving revision 1.8 diff -u -r1.8 pubcookie.module --- pubcookie.module 7 Dec 2006 16:27:56 -0000 1.8 +++ pubcookie.module 13 Dec 2006 22:47:22 -0000 @@ -14,16 +14,6 @@ // enable for lots of watchdog messages showing what's going on define('PUBCOOKIE_VERBOSE_LOGGING', 1); -/* - * Implementation of hook_help - */ -function pubcookie_help($section) { - switch ($section) { - case 'admin/modules#description': - return t('Enables distributed login via a pubcookie server.'); - } -} - /** * Implementation of hook_info(). */ @@ -50,9 +40,17 @@ 'title' => t('pubcookie login'), 'callback' => 'pubcookie_page', 'access' => TRUE, - 'type' => MENU_CALLBACK); + 'type' => MENU_CALLBACK, + ); + $items[] = array( + 'path' => 'admin/user/pubcookie', + 'title' => t('Pubcookie'), + 'description' => t('Configure pubcookie authentication.'), + 'callback' => 'drupal_get_form', + 'callback arguments' => 'pubcookie_settings', + 'access' => user_access('administer site configuration'), + ); } - return $items; } @@ -209,7 +207,7 @@ } } - if (!module_exist('profile')) { + if (!module_exists('profile')) { return; } // insert the value(s) into profile field(s) @@ -350,7 +348,7 @@ '#maxlength' => '255' ); - return $form; + return system_settings_form($form); } /*