Removed _crufty_ ajax responders from hook_menu().
authorSam Boyer
Sun, 17 Aug 2008 02:15:32 +0000 (02:15 +0000)
committerSam Boyer
Sun, 17 Aug 2008 02:15:32 +0000 (02:15 +0000)
Heh. The callback functions these menu items were seeking don't even exist. Talk about old, crufty, unused code...that somehow all of us have missed and left in!

panels_page/panels_page.module

index 8d0f80e..3c06554 100644 (file)
@@ -105,54 +105,6 @@ function panels_page_menu($may_cache) {
       'type' => MENU_CALLBACK,
     );
 
-    // Ajax responder
-    $items[] = array(
-      'path' => 'panels/argument/ajax/add',
-      'access' => $access,
-      'callback' => 'panels_page_passthru',
-      'callback arguments' => array('panels_page_ajax_argument_add'),
-      'type' => MENU_CALLBACK,
-    );
-    $items[] = array(
-      'path' => 'panels/argument/ajax/edit',
-      'access' => $access,
-      'callback' => 'panels_page_passthru',
-      'callback arguments' => array('panels_page_ajax_argument_edit'),
-      'type' => MENU_CALLBACK,
-    );
-
-    // Ajax responder
-    $items[] = array(
-      'path' => 'panels/relationship/ajax/add',
-      'access' => $access,
-      'callback' => 'panels_page_passthru',
-      'callback arguments' => array('panels_page_ajax_relationship_add'),
-      'type' => MENU_CALLBACK,
-    );
-    $items[] = array(
-      'path' => 'panels/relationship/ajax/edit',
-      'access' => $access,
-      'callback' => 'panels_page_passthru',
-      'callback arguments' => array('panels_page_ajax_relationship_edit'),
-      'type' => MENU_CALLBACK,
-    );
-
-    // Ajax responder
-    $items[] = array(
-      'path' => 'panels/context/ajax/add',
-      'access' => $access,
-      'callback' => 'panels_page_passthru',
-      'callback arguments' => array('panels_page_ajax_context_add'),
-      'type' => MENU_CALLBACK,
-    );
-    $items[] = array(
-      'path' => 'panels/context/ajax/edit',
-      'access' => $access,
-      'callback' => 'panels_page_passthru',
-      'callback arguments' => array('panels_page_ajax_context_edit'),
-      'type' => MENU_CALLBACK,
-    );
-
     // Get all panels and, if enabled, create menu items.
     foreach ($panels as $panel_page) {
       if (empty($panel_page->disabled)) {