You are here

function vud_node_tab_view_stats in Vote Up/Down 6.2

Same name and namespace in other branches
  1. 6.3 vud_node/vud_node.module \vud_node_tab_view_stats()
  2. 7 vud_node/vud_node.module \vud_node_tab_view_stats()

Access Callback from hook_menu (vud_node_menu).

1 string reference to 'vud_node_tab_view_stats'
vud_node_menu in vud_node/vud_node.module
Implementation of hook_menu().

File

vud_node/vud_node.module, line 62
Adds a voting widget to nodes.

Code

function vud_node_tab_view_stats($node) {

  // Immediately check if the user has any view rights
  if (!user_access('see vote up/down node stats')) {
    return FALSE;
  }
  if (in_array($node->type, variable_get('vud_node_types', array()), TRUE)) {
    return TRUE;
  }
}