Hi,
I'm creating a module using drupal 7.
I have a problem outputing some data in a function.
my problem is in function evaluation_section() how do i output form and table at the same time.
Thank you in advance for your help. very much appreciated. :D
<?php
/**
* Implements hook_menu().
*/
function evaluation_menu() {
$items['evaluate'] = array(
'title' => 'Student Evaluation',
'page callback' => 'evaluation_section',
'access arguments' => array('access evaluation'),
'type' => MENU_NORMAL_ITEM,
);
return $items;
}
/**
* Menu page callback function
*/
function evaluation_section(){
$section = arg(1);
if (empty($section)){
$section = 'search';
}
if ($section == 'result'){
$firstname = arg(2);
$lastname = arg(3);
/**
* My problem is here. I don't know how to output form and table at the same time.
*/
$output = drupal_get_form('evaluation_search_student_form',$firstname,$lastname);
$output .= evaluation_get_student_regisration($firstname,$lastname);
return $output;
}elseif ($section == 'registration'){
// code for getting student registration
}elseif($section == 'search'){
return drupal_get_form('evaluation_search_student_form',NULL,NULL);
}
}
/**
* Generate student form.
*/