Index: sites/all/modules/tabs-HEAD/tabs.info =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/tabs/tabs.info,v retrieving revision 1.2 diff -u -p -r1.2 tabs.info --- sites/all/modules/tabs-HEAD/tabs.info 16 Aug 2009 21:12:44 -0000 1.2 +++ sites/all/modules/tabs-HEAD/tabs.info 25 Aug 2009 03:59:06 -0000 @@ -2,4 +2,9 @@ name = Tabs description = A helper module for creating tabbed pages. package = User interface -core = 6.x +core = 7.x + +files[] = tabs.admin.inc +files[] = tabs.install +files[] = tabs.module +files[] = tabs.theme.inc \ No newline at end of file Index: sites/all/modules/tabs-HEAD/tabs.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/tabs/tabs.module,v retrieving revision 1.17 diff -u -p -r1.17 tabs.module --- sites/all/modules/tabs-HEAD/tabs.module 20 Aug 2009 19:58:59 -0000 1.17 +++ sites/all/modules/tabs-HEAD/tabs.module 25 Aug 2009 03:59:06 -0000 @@ -9,7 +9,7 @@ */ /** - * Implementation of hook_menu(). + * Implements 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 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', ), ); } @@ -54,7 +51,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' : ''); $children = element_children($element); @@ -72,7 +69,7 @@ function tabs_pre_render_tabset($element continue; } // Display any #description before the #content. - $element[$key]['#content'] = (isset($element[$key]['#description']) && $element[$key]['#description'] ? '
'. $element[$key]['#description'] .'
' : '') . $element[$key]['#content']; + $element[$key]['#content'] = (isset($element[$key]['#description']) && $element[$key]['#description'] ? '
' . $element[$key]['#description'] . '
' : '') . $element[$key]['#content']; $element[$key]['#tabset_name'] = $element['#tabset_name']; $element[$key]['#title'] = check_plain($element[$key]['#title']); // If not explicitly set, construct a tab name from the title. @@ -90,9 +87,9 @@ 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']; + $element[$key]['#attributes']['class'] = (isset($element[$key]['#attributes']['class']) ? $element[$key]['#attributes']['class'] . ' ' : '') . $element[$key]['#tab_name']; // Add the active class if this tab is selected. if (isset($element[$key]['#selected']) && $element[$key]['#selected']) { $element[$key]['#attributes']['class'] .= ' active'; @@ -146,7 +143,7 @@ function tabs_render($form) { } /** - * Implementation of hook_elements(). + * Implements hook_elements(). */ function tabs_elements() { $type = array();