fields('fellowship_testimonials');
$query->orderBy('year', $year);
$result = $query->extend('PagerDefault')->limit(3)->execute();
$page_content .= "
";
while($row = $result->fetchObject()) {
$speakerquery = db_select('fellows');
$speakerquery->fields('fellows');
$speakerquery->condition('t_id', $row->id);
$speakerresult = $speakerquery->execute();
$page_content .= "
";
while($speakerrow = $speakerresult->fetchObject()){
$page_content .= "
{$speakerrow->name}
Institute: {$speakerrow->institute}, {$speakerrow->place}
";
}
$page_content .= "Fellowship task: {$row->fellowship_task}
Fellowship Year: {$row->year}
";
}
$page_content .= "
";
//$page_content .= theme("pager", NULL, 4, 0);
$page_content .= theme('pager', array('header' => NULL, 'rows' => 4 ));
return $page_content;
}