You are here

function ad_owners_access in Advertisement 6.3

Same name and namespace in other branches
  1. 6 owners/ad_owners.module \ad_owners_access()
  2. 6.2 owners/ad_owners.module \ad_owners_access()
  3. 7 owners/ad_owners.module \ad_owners_access()

Menu item access callback.

1 string reference to 'ad_owners_access'
ad_owners_menu in owners/ad_owners.module
Implementation of hook_menu().

File

owners/ad_owners.module, line 88
Enhances the ad module to support ad owners.

Code

function ad_owners_access($node) {
  return $node->type == 'ad' && ad_permission($node->nid, 'manage owners');
}