You are here

function _commerce_autosku_get_temporary_sku in Commerce AutoSKU 7

Generate a random, temporary SKU to use when saving a new node.

1 call to _commerce_autosku_get_temporary_sku()
commerce_autosku_commerce_product_presave in ./commerce_autosku.commerce.inc
Implements hook_commerce_product_presave().

File

./commerce_autosku.module, line 177
Module hooks and helper functions for commerce_autosku

Code

function _commerce_autosku_get_temporary_sku() {
  return 'temporary:' . mt_rand(1, 9999999);
}