diff --git a/menu_html.info b/menu_html.info
index 6a0cef4..ba73edc 100644
--- a/menu_html.info
+++ b/menu_html.info
@@ -1,6 +1,6 @@
 name = Menu HTML
 description = Allows menu items to contain html.
 dependencies[] = menu
-core = 6.x
+core = 7.x
 
 
diff --git a/menu_html.module b/menu_html.module
index b8ea511..2213333 100644
--- a/menu_html.module
+++ b/menu_html.module
@@ -1,18 +1,17 @@
 <?php
-// $id:
 
 /**
  * Implementation of hook_form_alter
  */
-function menu_html_form_alter(&$form, $form_state, $form_id) {
+function menu_html_form_alter(&$form, &$form_state, $form_id) {
   if ($form_id == 'menu_edit_item' || strpos($form_id, '_node_form') > 0) {
-    $item = $form['menu']['#item'];
-    $form['menu']['html'] = array(
+    $item = $form['original_item']['#value'];
+    $form['html'] = array(
       '#type' => 'checkbox',
       '#title' => t('Allow html'),
       '#default_value' => isset($item['options']['html']) ? $item['options']['html'] : 0,
       '#description' => t('If you want to add html tags to the title of a menu, enable this. This should only be accessible to trusted users.'),
-      );
+    );
   }
 }
 
@@ -20,7 +19,7 @@ function menu_html_form_alter(&$form, $form_state, $form_id) {
  * Implementation of hook_menu_link_alter
  *
  */
-function menu_html_menu_link_alter(&$item, $menu) {
+function menu_html_menu_link_alter(&$item) {
   if (isset($item['html']) && $item['html']) {
     $item['options']['html'] = $item['html'];
   }
