Browse Source

Merge pull request #737 from tripal/712_fix_views_path

fix variable passed in hook menu for views integration
Lacey-Anne Sanderson 6 năm trước cách đây
mục cha
commit
a7987a7df0
1 tập tin đã thay đổi với 2 bổ sung12 xóa
  1. 2 12
      tripal_chado_views/tripal_chado_views.module

+ 2 - 12
tripal_chado_views/tripal_chado_views.module

@@ -82,7 +82,7 @@ function tripal_chado_views_menu() {
   $items['admin/tripal/storage/chado/views-integration/delete/%'] = array(
     'title' => 'Delete Views Integration',
     'page callback' => 'tripal_chado_views_integration_delete',
-    'page arguments' => array(4),
+    'page arguments' => array(6),
     'access arguments' => array('manage tripal_views_integration'),
     'type' => MENU_CALLBACK,
   );
@@ -105,21 +105,11 @@ function tripal_chado_views_menu() {
     'weight' => 2,
   );
 
-  $items['admin/tripal/storage/chado/views-integration/export'] = array(
-    'title' => 'Export Views Integration',
-    'description' => 'Export a Chado Views Integration for use in another Tripal site',
-    'page callback' => 'drupal_get_form',
-    'page arguments' => array('tripal_chado_views_integration_export_form', 4),
-    'access arguments' => array('manage tripal_views_integration'),
-    'type' => MENU_CALLBACK,
-    'weight' => 3,
-  );
-
   $items['admin/tripal/storage/chado/views-integration/export/%'] = array(
     'title' => 'Export Views Integration',
     'description' => 'Export a Chado Views Integration for use in another Tripal site',
     'page callback' => 'drupal_get_form',
-    'page arguments' => array('tripal_chado_views_integration_export_form', 4),
+    'page arguments' => array('tripal_chado_views_integration_export_form', 6),
     'access arguments' => array('manage tripal_views_integration'),
     'type' => MENU_CALLBACK,
   );