You are here

function vote_up_down_page in Vote Up/Down 6

Same name and namespace in other branches
  1. 5 vote_up_down.module \vote_up_down_page()

Menu callback; Handles voteupdown and subpages.

1 string reference to 'vote_up_down_page'
vote_up_down_menu in ./vote_up_down.module
Implementation of hook_menu().

File

./vote_up_down.module, line 419

Code

function vote_up_down_page() {
  $op = arg(1);
  switch ($op) {
    case 'usersvotes':
      $output = vote_up_down_users_votes();
      break;
    default:
      $items = array();
      $items[] = l(t('Users by votes'), 'voteupdown/usersvotes');
      $output = theme('item_list', $items);
  }
  return $output;
}