You are here

function ad_status_array in Advertisement 6

Same name and namespace in other branches
  1. 5.2 ad.module \ad_status_array()
  2. 5 ad.module \ad_status_array()
  3. 6.3 ad.module \ad_status_array()
  4. 6.2 ad.module \ad_status_array()
  5. 7 ad.module \ad_status_array()
2 calls to ad_status_array()
ad_form in ./ad.module
Implementation of hook_form().
theme_ad_status_display in ./ad.module
Display the status of the currently viewed ad.

File

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

Code

function ad_status_array($admin = TRUE) {
  if ($admin) {

    // status options for administrators
    return array(
      'pending' => t('This advertisement is currently waiting for administrative approval.'),
      'approved' => t('This advertisement has been approved and is currently waiting to be administratively activated.'),
      'active' => t('This advertisement is actively being displayed.'),
      'offline' => t('This advertisement has been temporarily disabled by its owner and is not currently being displayed.'),
      'unpublished' => t('This advertisement has been unpublished and is not currently being displayed.'),
      'expired' => t('This advertisement has expired.'),
      'denied' => t('This advertisement was refused by the site administrator, it will not be displayed.'),
    );
  }
  else {

    // status options for advertisement owners
    return array(
      'active' => t('This advertisement is actively being displayed.'),
      'offline' => t('This advertisement has been temporarily disabled and is not currently being displayed.'),
    );
  }
}