You are here

function ad_report_bargraph_access in Advertisement 6.3

Same name and namespace in other branches
  1. 6.2 report/ad_report.module \ad_report_bargraph_access()
  2. 7 report/ad_report.module \ad_report_bargraph_access()

Menu system callback, determine if current user can generate reports.

1 string reference to 'ad_report_bargraph_access'
ad_report_menu in report/ad_report.module
Implementation of hook_menu().

File

report/ad_report.module, line 64
Provides comprehensive charts and reports about advertising statistics.

Code

function ad_report_bargraph_access($node) {
  if (isset($node->adtype)) {
    return ad_permission($node->nid, 'generate reports');
  }
}