Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
831 florian 1
<?php
2
 
3
// This is an example of a single file module for Phorum. Almost all
4
// programming courses start out with building a program that displays
5
// "Hello, world!" on screen. The Phorum developers have followed
6
// the tradition and created "Hello, world!" for the Phorum module
7
// system.
8
 
9
if(!defined("PHORUM")) return;
10
 
11
/* phorum module info
12
title: Single file "Hello, world!" module
13
desc: This is an example of a single file module. The module will display "Hello, world!" after displaying the page header.
14
hook: after_header|phorum_mod_helloworld_after_header
15
*/
16
 
17
function phorum_mod_helloworld_after_header () {
18
    print "Hello, world!";
19
}