summaryrefslogtreecommitdiffstats
path: root/mega.module
blob: 8c5c3076e8635b515d63ff4763766f2c19d3acbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
}