By Rotwang on
In hook_insert, I'm trying to echo stuff, and none of it shows up. The rest of the function works because the data gets written to the db...
In hook_insert, I'm trying to echo stuff, and none of it shows up. The rest of the function works because the data gets written to the db...
Comments
Nothing to print
It doesn't show because the page redirects (generally) before it can print your output.
Are you debugging?
If so, then you can
exit;right after theecho()to stop Drupal and dump the variables.If not, you are likely sending:
a) A user message: use drupal_set_message(). http://api.drupal.org/api/5/function/drupal_set_message
b) An admin message: use watchdog(). http://api.drupal.org/api/5/function/watchdog
--
http://ken.blufftontoday.com/
http://new.savannahnow.com/user/2
Search first, ask good questions later.
excellent, thank you.
excellent, thank you.