summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-21 00:38:33 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-01-21 00:38:33 -0500
commit97f14ef1f9c9a1151c149eb1e95646081918befb (patch)
tree79798d58f8d3070b5ff00b8e993e05a371d0873d /lib/util.php
parentba287e9a0da6a12199bb0477229cbed2816fe6b6 (diff)
Define URLs for groups
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index 73c4cdcc8..7b30aeab4 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -915,6 +915,20 @@ function common_fancy_url($action, $args=null)
} else {
return common_path('main/sup');
}
+ case 'newgroup':
+ return common_path('group/new');
+ case 'showgroup':
+ return common_path('group/'.$args['nickname']);
+ case 'editgroup':
+ return common_path('group/'.$args['nickname'].'/edit');
+ case 'joingroup':
+ return common_path('group/'.$args['nickname'].'/join');
+ case 'leavegroup':
+ return common_path('group/'.$args['nickname'].'/leave');
+ case 'groupbyid':
+ return common_path('group/'.$args['id'].'/id');
+ case 'grouprss':
+ return common_path('group/'.$args['nickname'].'/rss');
default:
return common_simple_url($action, $args);
}