You are here

function commerce_reset_commerce_reset_reset_items in Commerce Reset 7

Define commerce reset callbacks.

This hook enables modules to register their own callbacks.

File

./commerce_reset.module, line 286

Code

function commerce_reset_commerce_reset_reset_items() {
  $items = array();
  $items[] = array(
    'description' => t('Delete all orders'),
    'callback' => 'commerce_reset_delete_orders',
    'data_callback' => 'commerce_reset_get_orders_ids',
    'count_callback' => 'commerce_reset_order_count',
    'primary_key' => 'order_id',
  );
  $items[] = array(
    'description' => t('Delete all payment transactions'),
    'callback' => 'commerce_reset_delete_payment_transactions',
    'data_callback' => 'commerce_reset_get_transaction_ids',
    'count_callback' => 'commerce_reset_transaction_count',
    'primary_key' => 'transaction_id',
  );
  $items[] = array(
    'description' => t('Delete all customer profiles'),
    'callback' => 'commerce_reset_delete_customer_profiles',
    'data_callback' => 'commerce_reset_get_customer_profiles_ids',
    'count_callback' => 'commerce_reset_customer_profiles_count',
    'primary_key' => 'profile_id',
  );
  $items[] = array(
    'description' => t('Delete all products variations'),
    'callback' => 'commerce_reset_delete_products',
    'data_callback' => 'commerce_reset_get_products_ids',
    'count_callback' => 'commerce_reset_products_count',
    'primary_key' => 'product_id',
  );
  return $items;
}