Fix for events_menu piece

  1. if (arg(0) == 'node' && is_numeric(arg(1))) {
  2.       $type = db_result(db_query(db_rewrite_sql("SELECT n.type FROM {node} n WHERE n.nid = %d"), arg(1)));
  3.       if (event_is_enabled($type)) {
  4.         event_include_files();
  5.         $items[] = array('path' => 'node/'.arg(1).'/ical',
  6.                            'title' => t('Event ical'),
  7.                            'callback' => 'event_node_ical',
  8.                            'access' => user_access('access content'),
  9.                            'type' => MENU_CALLBACK);
  10.       }
  11.     }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.