Hi

I have seen many references to page_example.module in the source code.

What is it?

I have seen the api documentation http://api.drupal.org/api/drupal/developer--examples--page_example.module/6.

Is there something else? Is there a module for me to download or something?

Kind Regards,

Adrian Smith

Comments

Anonymous’s picture

well, it is what it says it is: "This is an example outlining how a module can be used to display a custom page at a given URL." that said, you'd need to embed the sample code into a module.

It is basically an example of how to use hook_menu to programmatically add a page to a website. To make this work in a drupal installation, you'd create a module called page_example (with .module, .install, and .info files), and put all of the components into the .module file (or into an included file), enable the module, rebuild the menus, and away you go.

Hope that helps!

AdrianSmithUK’s picture

Many Thanks Doug,

Where do you get it from though?

Is it an abstract concept or is it a tangible thing you can download? If so I can't find it.

Kind Regards,

Adrian