Fix for QuickTabs live example from newteachers.tes.co.uk/qanda

  1. /**
  2.  * Function for building the Q&A page tabbed views.
  3.  */
  4. function nqt_features_build_qanda_quicktabs() {
  5.   $quicktabs = array();
  6.   // General settings.
  7.   $quicktabs['ajax'] = TRUE;
  8.   $quicktabs['qtid'] = 'nqt_features_qanda_tabs';
  9.   // Define the actual tabs.
  10.   $tabs = array();
  11.   $tabs['first'] = array(
  12.           'title' => t('Recent Questions'),
  13.           'type' => 'view',
  14.           'vid' => 'qanda_blocks',
  15.           'display' => 'block_3',
  16.           //'args' => 'my_arguments',
  17.   );
  18.   $tabs['second'] = array(
  19.           'title' => t('Hot Topics'),
  20.           'type' => 'view',
  21.           'vid' => 'qanda_blocks',
  22.           'display' => 'block_1',
  23.   );
  24.   $quicktabs['tabs'] = $tabs;
  25.   return $quicktabs;
  26. }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.