summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--alpinelinux.module9
1 files changed, 7 insertions, 2 deletions
diff --git a/alpinelinux.module b/alpinelinux.module
index a62708c..eeff415 100644
--- a/alpinelinux.module
+++ b/alpinelinux.module
@@ -23,6 +23,11 @@ function alpinelinux_menu() {
'access callback' => TRUE,
'type' => MENU_LOCAL_TASK
);
+ $items['w'] = array(
+ 'page callback' => 'alpinelinux_wiki_redirect',
+ 'access callback' => TRUE,
+ 'type' => MENU_LOCAL_TASK
+ );
return $items;
}
@@ -105,8 +110,8 @@ function alpinelinux_mirrors() {
function alpinelinux_wiki_redirect() {
$wiki_url = 'http://wiki.alpinelinux.org/wiki/';
- if (arg(0) == 'wiki') {
+ if ((arg(0) == 'wiki') || (arg(0) == 'w')) {
$url = (arg(1)) ? $wiki_url . arg(1) : $wiki_url;
drupal_goto($url);
}
-} \ No newline at end of file
+}