function ad_adapi in Advertisement 7
Same name and namespace in other branches
- 5.2 ad.module \ad_adapi()
- 5 ad.module \ad_adapi()
- 6.3 ad.module \ad_adapi()
- 6 ad.module \ad_adapi()
- 6.2 ad.module \ad_adapi()
File
- ./
ad.module, line 1199
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;
}
}