***************
*** 1,5 ****
  <?php
- // $Id: poormanscron.module,v 1.18.2.1 2007/01/14 12:34:37 uwe Exp $ $Name:  $
  
  /**
   * @file
--- 1,5 ----
  <?php
+ // $Id: poormanscron.module,v 1.18.2.1 2007/01/14 12:34:37 uwe Exp $ $Name: DRUPAL-5 $
  
  /**
   * @file
***************
*** 9,16 ****
  /**
   * Implementation of hook_help().
   */
- function poormanscron_help($section = 'admin/help#poormanscron') {
-   switch ($section) {
      case 'admin/help#poormanscron':
      case 'admin/settings/modules#description':
      case 'admin/settings/poormanscron':
--- 9,16 ----
  /**
   * Implementation of hook_help().
   */
+ function poormanscron_help($path, $arg) {
+   switch ($path) {
      case 'admin/help#poormanscron':
      case 'admin/settings/modules#description':
      case 'admin/settings/poormanscron':
***************
*** 95,125 ****
  }
  
  /**
-  * With hook_settings() obsoleted in 5.0, we now need a menu handler
-  * for settings.
   *
   * @param bool $may_cache
   * @return array
   */
- function poormanscron_menu($may_cache) {
- 
-   if ($may_cache) {
-     $items[] = array(
-       'path' => 'admin/settings/poormanscron',
-       'title' => t('Poormanscron'),
-       'description' => t('A module which runs Drupal cron jobs without the cron application.'),
-       'callback' => 'drupal_get_form',
-       'callback arguments' => 'poormanscron_admin_settings',
-       'access' => user_access('administer site configuration'),
-       'type' => MENU_NORMAL_ITEM,
-     );
-   }
- 
    return $items;
  }
  
  /**
-  * 5.0 version of obsolete hook_settings().
   */
  function poormanscron_admin_settings() {
    $form['time_intervals'] = array('#type' => 'fieldset', '#title' => t('Time intervals'));
--- 95,119 ----
  }
  
  /**
+  * With the updated menu system for Drupal 6, we update the menu handler. 
   *
   * @param bool $may_cache
   * @return array
   */
+ function poormanscron_menu() {
+   $items['admin/settings/poormanscron'] = array(
+     'title' => t('Poormanscron'),
+     'description' => t('A module which runs Drupal cron jobs without the cron application.'),
+     'page callback' => 'drupal_get_form',
+     'page arguments' => array('poormanscron_admin_settings'),
+     'access arguments' => array('administer site configuration'),
+     'type' => MENU_NORMAL_ITEM,
+   );
    return $items;
  }
  
  /**
+  * 5.0 version of obsolete hook_settings(). Valid in Drupal 6.
   */
  function poormanscron_admin_settings() {
    $form['time_intervals'] = array('#type' => 'fieldset', '#title' => t('Time intervals'));
