summaryrefslogtreecommitdiff
path: root/modules/affiliate-site.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/affiliate-site.module')
-rw-r--r--modules/affiliate-site.module14
1 files changed, 13 insertions, 1 deletions
diff --git a/modules/affiliate-site.module b/modules/affiliate-site.module
index dcb850070..42c95c616 100644
--- a/modules/affiliate-site.module
+++ b/modules/affiliate-site.module
@@ -1,8 +1,15 @@
<?
-$module = array("block" => "affiliate_block",
+$module = array("help" => "affiliate_help",
+ "block" => "affiliate_block",
"admin" => "affiliate_admin");
+function affiliate_help() {
+ ?>
+ <P>This is a small module to manage related and/or affiliate sites. The module exports 2 different blocks with links to the affiliate sites.</P>
+ <?
+}
+
function affiliate_block() {
global $site_url;
@@ -77,6 +84,8 @@ function affiliate_admin_display() {
function affiliate_admin() {
global $op, $id, $name, $link, $contact;
+ print "<SMALL><A HREF=\"admin.php?mod=affiliate-site\">overview</A> | <A HREF=\"admin.php?mod=affiliate-site&op=help\">help</A></SMALL><HR>\n";
+
switch($op) {
case "Add affiliate":
affiliate_admin_add($name, $link, $contact);
@@ -86,6 +95,9 @@ function affiliate_admin() {
affiliate_admin_del($id);
affiliate_admin_display();
break;
+ case "help":
+ affiliate_help();
+ break;
default:
affiliate_admin_display();
}