I dont known how to make patch. But it can help you I replace function sitemenu_settings() with following code and now it is working with latest CVS version of Drupal.
I used code-checker.php and it didn't write any errors.

function sitemenu_settings() {
  $vocabularies = taxonomy_get_vocabularies();  
  $select[0] = "<". t("none") .">";
  foreach ($vocabularies as $vocabulary) {
    $select[$vocabulary->vid] = $vocabulary->name;
  }

  $form['sitemenu_description'] = array(
    '#type' => 'textarea', '#title' => t('Description'),
    '#default_value' => variable_get('sitemenu_description', t('This is the site map page.')),
    '#cols' => 70,
    '#rows' => 7,
    '#description' => t('This text will be displayed at the top of the site menu page')
  );

  $form['sitemenu_overview_vocab'] = array(
    '#type' => 'select',
    '#title' => t('Omitted vocabularies'),
    '#default_value' => variable_get("sitemenu_overview_vocab", array()), 
    '#options' => $select, 
    '#multiple' => true,
    '#description' => t('Select vocabularies which should be <b>omitted</b> from listings.')
  );

  $form['sitemenu_overview_title'] = array(
    '#type' => 'textfield',
    '#title' => t('Navigation link text'),
    '#required' => TRUE,
    '#default_value' => variable_get("sitemenu_overview_title", t("site map")),
    '#size' => 35,
    '#maxsize' => 255,
    '#description' => t('The text in the navigation link which points to the site menu page.')
  );

  $form['sitemenu_block_title'] = array(
    '#type' => 'textfield',
    '#title' => t('Block title text'),
    '#required' => TRUE,
    '#default_value' => variable_get("sitemenu_block_title", t("Menu")),
    '#size' => 35,
    '#maxsize' => 255,
    '#description' => t('If configured as a block, this text shows as the block title.')
  );

  $form['sitemenu_node_count'] = array(
    '#type' => 'checkbox', '#title' => t('Show number of nodes for each term'),
    '#default_value' => variable_get("sitemenu_node_count", 1),
  );

  $form['sitemenu_author_and_comments'] = array(
    '#type' => 'checkbox', '#title' => t('Show Author and number of Comments (in mousover)'),
    '#default_value' => variable_get("sitemenu_author_and_comments", 1),
  );

  $form['sitemenu_max_rows'] = array(
    '#type' => 'textfield',
    '#title' => t('Number of nodes to show'),
    '#required' => TRUE,
    '#default_value' => variable_get("sitemenu_max_rows", t("0")),
    '#size' => 10,
    '#maxsize' => 10,
    '#description' => t('Number of nodes to show per taxonomy term. Set to 0 if you do not want nodes to listed')
  );

  return $form;
}  

In attachment is complete file sitemenu.module.

Comments

pfaocle’s picture

Please find patch attached. I've amended your code ever so slightly (syntax/code style)... I haven't tested this patch yet, but we have a site that uses it which is currently being updated for 4.7 so I will able to do so very soon.

pfaocle’s picture

Oops.

kbahey’s picture

Status: Needs review » Reviewed & tested by the community

Thank you so much guys for this patch.

I will incorporate it eventually, but first, I have a new feature planned for this module that I like to make available for 4.6, before porting to 4.7.

pfaocle’s picture

Any news? 4.7 is getting closer... ;)

kbahey’s picture

Assigned: anantagati » kbahey
Category: bug » feature
Priority: Critical » Normal
Status: Reviewed & tested by the community » Fixed

Patch applied. Module should be 4.7 ready tomorrow.

Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)