diff options
Diffstat (limited to 'mega.module')
-rw-r--r-- | mega.module | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mega.module b/mega.module new file mode 100644 index 0000000..8c5c307 --- /dev/null +++ b/mega.module @@ -0,0 +1,22 @@ +<?php + +/** + * Implements hook_menu(). + */ +function mega_menu() { + /* reponds upon hit to /mega url-path */ + $items['mega'] = array( + 'title' => 'mega', + 'page callback' => 'mega_callback', + "access callback" => TRUE, /* bypass any restrictions */ + 'type' => MENU_CALLBACK, + ); + + return $items; +} + +function mega_callback() { + $ret = 'hello, world!'; + + return $ret; +} |