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.
By jebau on
Hi,
I read a lot of doc about this but is really strange for me
I will return a form , table & and a graph to my template
Actually that work for my form but how can I return the other values ?
Thanks in advance
function rep_dealerv2_theme(){
return array(
'rep_dealerv2_template' => array(
'render element' => 'form',
'template' => 'rep_dealerv2_template',
),
);
}
function rep_dealerv2_content(){
$form_dealer=drupal_get_form('rep_dealerv2_form');
return theme('rep_dealerv2_template',$form_dealer);
}
Comments
What is the relation between
What is the relation between the form, table and graph?
Note, this looks like it should be in a module, not a theme.