function vote_storylink_page in Vote Up/Down 5
Menu callback; displays a Drupal page containing recent story links entries.
1 string reference to 'vote_storylink_page'
- vote_storylink_menu in ./
vote_storylink.module - Implementation of hook_menu().
File
- ./
vote_storylink.module, line 323
Code
function vote_storylink_page($a = NULL, $b = NULL, $c = NULL) {
if (is_numeric($a)) {
// $a is a user ID
if ($b == 'feed') {
return vote_storylink_feed_user($a);
}
else {
return vote_storylink_page_user($a);
}
}
else {
switch ($a) {
case 'new':
if ($b == 'feed') {
return vote_storylink_feed_new();
}
else {
return vote_storylink_page_new();
}
break;
case 'queue':
if ($b == 'feed') {
return vote_storylink_feed_queue();
}
else {
return vote_storylink_page_queue();
}
break;
case 'top':
if ($b == 'feed') {
return vote_storylink_feed_top();
}
else {
if ($b == ('day' || 'week' || 'month' || 'year')) {
if ($c == 'feed') {
return vote_storylink_feed_interval_top($b);
}
else {
return vote_storylink_page_interval_top($b);
}
}
else {
return vote_storylink_page_top();
}
}
break;
default:
return vote_storylink_page_new();
}
}
}