menu callbacks should return the output, not print(theme_page)

robertDouglass - August 21, 2007 - 10:04
Project:AutoPilot
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

<?php
  $output
.= theme("table", $header, $rows);
  print(
theme("page", $output));
?>

For menu callbacks, this can just be

<?php
  $output
.= theme("table", $header, $rows);
  return
$output;
?>

 
 

Drupal is a registered trademark of Dries Buytaert.