You are here

function _talk_access in Talk 6

Same name and namespace in other branches
  1. 5 talk.module \_talk_access()
  2. 7 talk.module \_talk_access()

Helper item for talk_menu: access callback.

1 string reference to '_talk_access'
talk_menu in ./talk.module
Implementation of hook_menu().

File

./talk.module, line 47
Comments are displayed in a separate 'talk' tab, for node types you wish

Code

function _talk_access($node) {
  return $node->nid && _talk_node_comment_value($node) && talk_activated($node->type) && user_access('access comments') && node_access('view', $node) && (variable_get('talk_page_no_comments', TRUE) || $node->comment_count);
}