function _talk_access in Talk 7
Same name and namespace in other branches
- 5 talk.module \_talk_access()
- 6 talk.module \_talk_access()
Helper item for talk_menu: access callback.
1 call to _talk_access()
- talk_node_view in ./
talk.module - Implements hook_node_view().
1 string reference to '_talk_access'
- talk_menu in ./
talk.module - Implementation of hook_menu().
File
- ./
talk.module, line 78 - 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);
}