function page_example_description in Examples for Developers 7
Same name and namespace in other branches
- 6 page_example/page_example.module \page_example_description()
Constructs a descriptive page.
Our menu maps this function to the path 'examples/page_example'.
Related topics
1 string reference to 'page_example_description'
- page_example_menu in page_example/
page_example.module - Implements hook_menu().
File
- page_example/
page_example.module, line 143 - Module file for page_example_module.
Code
function page_example_description() {
return array(
'#markup' => t('<p>The page_example provides two pages, "simple" and "arguments".</p><p>The <a href="@simple_link">simple page</a> just returns a renderable array for display.</p><p>The <a href="@arguments_link">arguments page</a> takes two arguments and displays them, as in @arguments_link</p>', array(
'@simple_link' => url('examples/page_example/simple', array(
'absolute' => TRUE,
)),
'@arguments_link' => url('examples/page_example/arguments/23/56', array(
'absolute' => TRUE,
)),
)),
);
}