Index: pageroute.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pageroute/pageroute.module,v
retrieving revision 1.71.2.10
diff -u -r1.71.2.10 pageroute.module
--- pageroute.module	25 Aug 2009 10:06:58 -0000	1.71.2.10
+++ pageroute.module	25 Aug 2009 11:45:54 -0000
@@ -16,9 +16,8 @@
 /**
  * tabs config defines
  */
-define('PAGEROUTE_BUTTON_TABS', 1);
-define('PAGEROUTE_MENU_TABS', 2);
-define('PAGEROUTE_HINT_TABS', 3);
+define('PAGEROUTE_MENU_TABS', 1);
+define('PAGEROUTE_HINT_TABS', 2);
 
 include_once(drupal_get_path('module', 'pageroute') .'/pageroute.route.inc');
 include_once(drupal_get_path('module', 'pageroute') .'/pageroute.page.inc');
@@ -445,7 +444,6 @@
       'add' => 'pageroute.page_add',
       'edit' => 'pageroute.page_edit',
       'useredit' => 'pageroute.page_useredit',
-      'manage' => 'pageroute.page_manage',
     ),
   );
 }
@@ -545,7 +543,6 @@
  * Add tabs, buttons and other necessary properties to the form.
  */
 function pageroute_decorate(&$form, &$page, $no_pageroute_buttons = NULL, $button_name = 'page_op') {
-  pageroute_add_tabs($form, $page->route);
   if (!$no_pageroute_buttons || $no_pageroute_buttons == FALSE) {
     pageroute_add_buttons($form, $page, $button_name);
   }
@@ -614,39 +611,6 @@
 }
 
 /**
- * Add the pageroute tabs to a given form.
- */
-function pageroute_add_tabs(&$form, &$route)  {
-  if ($route->options['tabs'] != PAGEROUTE_BUTTON_TABS) {
-    return;
-  }
-
-  $form_tabs = array();
-
-  foreach ($route->pages as $index => $tabpage) {
-    if ((!isset($tabpage->options['no_tab']) || !$tabpage->options['no_tab'])) {
-      $form_tabs[$tabpage->name] = array(
-        '#type' => 'submit',
-        '#value' => $tabpage->title ? $tabpage->title : $tabpage->name,
-        '#tab-button' => $tabpage->name,
-        '#submit' => array('pageroute_page_tab_submit')
-      );
-      if (!$route->checkPageAccess($tabpage->name)) {
-        $form_tabs[$tabpage->name]['#attributes'] = array('class' => 'distant');
-        $form_tabs[$tabpage->name]['#disabled']   = TRUE;
-      }
-      elseif ($tabpage->name == $page->name) {
-        $form_tabs[$tabpage->name]['#attributes'] = array('class' => 'active');
-      }
-    }
-  }
-  $form_tabs['#weight'] = -100;
-  $form_tabs['#theme'] = 'pageroute_route_tabs';
-
-  $form['top']['tabs'] = $form_tabs;
-}
-
-/**
  * Themes the tab-like submit buttons of a route.
  * @param $elements The form elements of the tabs
  */
@@ -655,18 +619,6 @@
     'pageroute_route_tabs' => array(
       'arguments' => array('content')
     ),
-    'pageroute_page_manage_node' => array(
-      'arguments' => array('file' => 'pageroute.page_manage.inc', 'node' => NULL, 'number' => NULL, 'buttons' => NULL)
-    ),
-    'pageroute_page_manage_add_button' => array(
-      'arguments' => array('file' => 'pageroute.page_manage.inc', 'content_type' => NULL, 'label' => NULL)
-    ),
-    'pageroute_page_manage_empty' => array(
-      'arguments' => array('file' => 'pageroute.page_manage.inc', 'type_name' => NULL, 'page' => NULL)
-    ),
-    'pageroute_page_manage_buttons' => array(
-      'arguments' => array('file' => 'pageroute.page_manage.inc', 'node' => NULL, 'number' => NULL, 'buttons' => NULL)
-    ),
     'pageroute_embedded_form_reuse' => array(
       'arguments' => array('elements' => NULL)
     ),
Index: pageroute_ui.forms.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pageroute/pageroute_ui.forms.inc,v
retrieving revision 1.1.2.7
diff -u -r1.1.2.7 pageroute_ui.forms.inc
--- pageroute_ui.forms.inc	5 Aug 2009 14:36:32 -0000	1.1.2.7
+++ pageroute_ui.forms.inc	25 Aug 2009 11:45:54 -0000
@@ -27,7 +27,6 @@
     '#options' => array(
       0 => t('Don\'t show any tabs'),
       PAGEROUTE_MENU_TABS => t('Use the common drupal menu tabs'),
-      PAGEROUTE_BUTTON_TABS => t('Show submit-like tab buttons above the page content'),
     ),
     '#default_value' => isset($route->options['tabs']) ? $route->options['tabs'] : 0,
     '#description' => t('Note that the commom drupal menu tabs won\'t save the actual form, if they are used. Also any arguments appended to the URL will be lost. They are in particular useful for pageroutes, which focus on displaying content.'),
