Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I included tabs in the body parameters and nothing will print after tabs.
Here is my test.
---
<?php $form = array();
$form['loctabs'] = array(
'#type' => 'tabset',
);
$form['loctabs']['tab1'] = array(
'#type' => 'tabpage',
'#title' => t('One'),
'#content' => t('First tab content.'),
);
$form['loctabs']['tab2'] = array(
'#type' => 'tabpage',
'#title' => t('Two'),
'#content' => t('Second tab content.'),
);
$form['loctabs']['tab3'] = array(
'#type' => 'tabpage',
'#title' => t('Three'),
'#content' => t('Third tab content.'),
);
return tabs_render($form); ?>
test print this
<?php print $node->type ?>
Comments
Comment #1
eMPee584 CreditAttribution: eMPee584 commentedWell the return statement is surely not getting you what you wanted, try replacing it with a print call?