diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2011-05-07 11:45:15 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2011-05-07 11:45:15 +0000 |
commit | 28e2a75f3032d10600ead883ae7a5e00f28066c1 (patch) | |
tree | 35856f4d12295d107fd9e71a1ea57cc0657fe444 | |
parent | 6b2ae44c6480c807e5ee3c199b3130ef65a37b45 (diff) | |
download | alpine_drupal_settings-28e2a75f3032d10600ead883ae7a5e00f28066c1.tar.bz2 alpine_drupal_settings-28e2a75f3032d10600ead883ae7a5e00f28066c1.tar.xz |
-rw-r--r-- | alpinelinux.module | 9 |
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 +}
|