function panels_tabs_style_version in Panels Tabs 6
Determine which style version we shoud declare.
3 calls to panels_tabs_style_version()
- panels_tabs_ctools_plugin_api in ./
panels_tabs.module - Implements hook_ctools_plugin_api().
- panels_tabs_panels_pane_content_alter in ./
panels_tabs.module - Implements hook_panels_pane_content_alter().
- panels_tabs_panels_pre_render in ./
panels_tabs.module - Implements hook_panels_pre_render().
File
- ./
panels_tabs.module, line 101 - Definition of the 'tabs' panel style.
Code
function panels_tabs_style_version() {
// If ctools api version is greater than 1.7 then we should return version 2
$new = version_compare(PANELS_REQUIRED_CTOOLS_API, 1.7, '>=');
return $new ? 2 : 1;
}