Skip to content

Instantly share code, notes, and snippets.

@tj
Created January 28, 2009 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tj/54120 to your computer and use it in GitHub Desktop.
Save tj/54120 to your computer and use it in GitHub Desktop.
/**
* Implementation of hook_menu().
*/
function whatever_menu() {
$items = array();
$items['whatever/somepage'] = array(
'title' => 'Whatever',
'page callback' => 'drupal_get_form',
'page arguments' => array('whatever_somepage'),
);
return $items;
}
function whatever_sompage() {
return 'Hello World';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment