You are here

function simplenews_node_tab_access in Simplenews 7.2

Same name and namespace in other branches
  1. 6.2 simplenews.module \simplenews_node_tab_access()
  2. 7 simplenews.module \simplenews_node_tab_access()

Access callback; Acces to Newsletter tab page.

1 string reference to 'simplenews_node_tab_access'
simplenews_menu in ./simplenews.module
Implements hook_menu().

File

./simplenews.module, line 2623
Simplenews node handling, sent email, newsletter block and general hooks

Code

function simplenews_node_tab_access($node) {
  return simplenews_check_node_types($node->type) && user_access('send newsletter');
}