You are here

function ad_adapi in Advertisement 5.2

Same name and namespace in other branches
  1. 5 ad.module \ad_adapi()
  2. 6.3 ad.module \ad_adapi()
  3. 6 ad.module \ad_adapi()
  4. 6.2 ad.module \ad_adapi()
  5. 7 ad.module \ad_adapi()

File

./ad.module, line 1080
An advertising system for Drupal powered websites.

Code

function ad_adapi($op, $node = NULL) {
  switch ($op) {
    case 'permissions':
      return array(
        'access statistics' => TRUE,
        'access click history' => TRUE,
        'set status as pending' => FALSE,
        'set status as denied' => FALSE,
        'set status from pending to approved' => FALSE,
        'set status from pending to denied' => FALSE,
        'set status from approved to active' => TRUE,
        'set status from approved to offline' => TRUE,
        'set status from active to offline' => TRUE,
        'set status from active to expired' => FALSE,
        'set status from offline to active' => TRUE,
        'set status from offline to expired' => FALSE,
      );
  }
}