<?php
/**
* Implements hook_menu().
*/
function test_page_test_menu() {
$items['test-page'] = array(
'title' => 'Test front page',
'page callback' => 'test_page_test_page',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
return $items;
}
/**
* Page callback: Returns a test page and sets the title.
*
* @see test_page_test_menu()
*/
function test_page_test_page() {
drupal_set_title(t('Test page'));
return t('Test page text.');
}
Name | Description |
---|---|
test_page_test_menu | Implements hook_menu(). |
test_page_test_page | Page callback: Returns a test page and sets the title. |