You are here

function ad_ad_operations in Advertisement 6

Same name and namespace in other branches
  1. 5.2 ad.module \ad_ad_operations()
  2. 5 ad.module \ad_ad_operations()
  3. 6.3 ad.admin.inc \ad_ad_operations()
  4. 6.2 ad.admin.inc \ad_ad_operations()
  5. 7 ad.admin.inc \ad_ad_operations()

Implementation of hook_ad_operations().

File

./ad.admin.inc, line 64
Advertisement admin pages and functions.

Code

function ad_ad_operations() {
  $operations = array(
    'approved' => array(
      'label' => t('Mark as approved'),
      'callback' => 'ad_operations_callback',
      'callback arguments' => array(
        'approved',
      ),
    ),
    'active' => array(
      'label' => t('Mark as active'),
      'callback' => 'ad_operations_callback',
      'callback arguments' => array(
        'active',
      ),
    ),
    'expired' => array(
      'label' => t('Mark as expired'),
      'callback' => 'ad_operations_callback',
      'callback arguments' => array(
        'expired',
      ),
    ),
    'pending' => array(
      'label' => t('Mark as pending'),
      'callback' => 'ad_operations_callback',
      'callback arguments' => array(
        'pending',
      ),
    ),
    'offline' => array(
      'label' => t('Mark as offline'),
      'callback' => 'ad_operations_callback',
      'callback arguments' => array(
        'offline',
      ),
    ),
    'unpublished' => array(
      'label' => t('Mark as unpublished'),
      'callback' => 'ad_operations_callback',
      'callback arguments' => array(
        'unpublished',
      ),
    ),
    'denied' => array(
      'label' => t('Mark as denied'),
      'callback' => 'ad_operations_callback',
      'callback arguments' => array(
        'denied',
      ),
    ),
    'delete' => array(
      'label' => t('Delete'),
    ),
  );
  return $operations;
}