? 558614-tabs-d7.patch Index: tabs.info =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/tabs/tabs.info,v retrieving revision 1.3 diff -u -p -r1.3 tabs.info --- tabs.info 26 Aug 2009 15:12:08 -0000 1.3 +++ tabs.info 2 Dec 2010 14:57:11 -0000 @@ -1,4 +1,9 @@ ; $Id: tabs.info,v 1.3 2009/08/26 15:12:08 nedjo Exp $ name = Tabs description = A helper module for creating tabbed pages. -core = 6.x +core = 7.x + +files[] = tabs.admin.inc +files[] = tabs.install +files[] = tabs.module +files[] = tabs.theme.inc Index: tabs.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/tabs/tabs.module,v retrieving revision 1.30 diff -u -p -r1.30 tabs.module --- tabs.module 25 May 2010 04:56:40 -0000 1.30 +++ tabs.module 2 Dec 2010 14:57:12 -0000 @@ -9,7 +9,7 @@ */ /** - * Implementation of hook_menu(). + * Implements of hook_menu(). */ function tabs_menu() { $items = array(); @@ -20,24 +20,21 @@ function tabs_menu() { 'page callback' => 'drupal_get_form', 'page arguments' => array('tabs_admin_settings'), 'access arguments' => array('administer site configuration'), - 'file' => 'tabs.admin.inc', ); return $items; } /** - * Implementation of hook_theme() + * Implements of hook_theme() */ function tabs_theme() { return array( 'tabset' => array( 'arguments' => array('element' => NULL), - 'file' => 'tabs.theme.inc', ), 'tabpage' => array( 'arguments' => array('element' => NULL), - 'file' => 'tabs.theme.inc', ), ); } @@ -57,7 +54,7 @@ function tabs_pre_render_tabset($element if (!isset($element['#attributes'])) { $element['#attributes'] = array(); } - $element['#attributes']['class'] = (isset($element['#attributes']['class']) ? $element['#attributes']['class'] .' ' : '') .'drupal-tabs js-hide'. (isset($element['#tabs_navigation']) && $element['#tabs_navigation'] ? ' tabs-navigation' : ''); + $element['#attributes']['class'] = (isset($element['#attributes']['class']) ? $element['#attributes']['class'] . ' ' : '') . 'drupal-tabs js-hide' . (isset($element['#tabs_navigation']) && $element['#tabs_navigation'] ? ' tabs-navigation' : ''); // Allow other modules to alter the tabset before further processing. drupal_alter('tabs', $element); @@ -70,7 +67,7 @@ function tabs_pre_render_tabset($element $element[$key]['#content'] = ''; } if (isset($element[$key]['#description']) && $element[$key]['#description']) { - $element[$key]['#content'] = '
'. $element[$key]['#description'] .'
' . $element[$key]['#content']; + $element[$key]['#content'] = '
' . $element[$key]['#description'] . '
' . $element[$key]['#content']; unset($element[$key]['#description']); } $is_ajax = isset($element[$key]['#ajax_url']) && $element[$key]['#ajax_url']; @@ -103,7 +100,7 @@ function tabs_pre_render_tabset($element } // Otherwise we use a hash. else { - $element[$key]['#url'] = '#' . $element[$key]['#tab_name']; + $element[$key]['#url'] = '#' . $element[$key]['#tab_name']; } $element[$key]['#attributes']['class'] = (isset($element[$key]['#attributes']['class']) ? $element[$key]['#attributes']['class'] . ' ' : '') . $element[$key]['#tab_name']; // Add the ui-tabs-selected class if this tab is selected. @@ -168,7 +165,7 @@ function tabs_render($form) { } /** - * Implementation of hook_elements(). + * Implements of hook_elements(). */ function tabs_elements() { $type = array();