Narendran
August 7, 2013
$tabs = array();
$tabs[] = array(
'title' => t('Tab1'),
'type' => 'freetext',
'text' => 'Hello wecome to Tab1',
);
$tabs[] = array(
'title' => t('Tab2'),
'type' => 'freetext',
'text' => 'Hello wecome to Tab2',
);
$tabs[] = array(
'title' => t('Tab3'),
'type' => 'freetext',
'text' => 'Hello wecome to Tab3',
);
$quicktabs['qtid'] = 'QUICKTAB_NAME'; // custom name
$quicktabs['tabs'] = $tabs; // refer our previous code block
$quicktabs['style'] = 'Zen'; // style name
$quicktabs['ajax'] = FALSE;
print theme('quicktabs', $quicktabs); // theme of quick tabs.
qtid - is the unique tab id.
tabs - contains the actual tab content
style - various styling available for quicktabs. EX: Basic, Arrows, Bullets, Excel, Phylactere & etc.
ajax - False represents that all content will be loaded in advance. For True it will load dynamically on clicking the tab.
Just like how your fellow techies do.
We'd love to talk about how we can work together
Take control of your AWS cloud costs that enables you to grow!