I am looking at this sample module: http://api.drupal.org/api/file/developer/examples/page_example.module/5 but I am not getting it. The "A simple page callback." seems like it makes http://mysite.com/foo call the function page_example_foo() and so the user will see "The quick brown fox jumps over the lazy dog." I tried adding this code to my Drupal 5.2 but it doesn't seem to work. Can you someone show me how I can setup such a thing? That http://mysite.com/foo returns the output which I determine from a function. I don't actually need a menu item--I want the user to select an option in a dropdown and then submit a little form--based on their input I perform a search. What I can't figure out is how to get the search results to the browser. Thanks!
http://api.drupal.org/api/file/developer/examples/page_example.module/5
but I am not getting it. The "A simple page callback." seems like it makes http://mysite.com/foo call the function page_example_foo() and so the user will see "The quick brown fox jumps over the lazy dog."
I tried adding this code to my Drupal 5.2 but it doesn't seem to work. Can you someone show me how I can setup such a thing? That http://mysite.com/foo returns the output which I determine from a function.
OK, I examined this rest of the sample and I see it now. Thanks.
participants (1)
-
Fred Jones