You are here

function ad_adapi in Advertisement 6.3

Same name and namespace in other branches
  1. 5.2 ad.module \ad_adapi()
  2. 5 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 978

Code

function ad_adapi($op, $node = NULL) {
  switch ($op) {
    case 'permissions':
      return array(
        'access statistics' => TRUE,
        'access click history' => TRUE,
        'access activity log' => 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,
      );
      break;
  }
}