You are here

function quicktabs_preview_page in Quick Tabs 5

Same name and namespace in other branches
  1. 6 quicktabs.module \quicktabs_preview_page()

Callback function for quicktabs/preview.

1 string reference to 'quicktabs_preview_page'
quicktabs_menu in ./quicktabs.module
Implementation of hook_menu().

File

./quicktabs.module, line 670

Code

function quicktabs_preview_page($tabstyle_number = NULL) {
  $tabstyles = module_invoke_all('quicktabs_tabstyles');
  $css_files = array_keys($tabstyles);
  if (isset($css_files[$tabstyle_number])) {
    quicktabs_add_css($css_files[$tabstyle_number]);
  }
  else {
    quicktabs_add_css('default');
  }
  drupal_add_js(drupal_get_path('module', 'quicktabs') . '/js/quicktabs.js');
  print theme('quicktabs_preview_page');
  exit;
}