diff --git a/commerce_cart_expiration.module b/commerce_cart_expiration.module index 5b859c7..0ad2792 100644 --- a/commerce_cart_expiration.module +++ b/commerce_cart_expiration.module @@ -85,17 +85,18 @@ function commerce_cart_expiration_access($op, $arg) { * Time span (in seconds) until shopping carts are considered expired. * @param int $limit * Number of expired carts to get. - * @param mixed $ignore_status - * Orders in this status will never be considered expired + * @param string $ignore_status + * (optional) Orders in this status will never be considered expired. Defaults + * to NULL. * * @return array * An array of commerce order IDs. When no results are found, an empty array * is returned. */ -function commerce_cart_expiration_get_expired_carts($interval, $limit = 0, $ignore_status = FALSE) { - // If we're resetting order statuses (instead of deleting orders), ignore orders - // already in the target status, to make sure we process as may orders that need - // resetting as possible +function commerce_cart_expiration_get_expired_carts($interval, $limit = 0, $ignore_status = NULL) { + // If we're resetting order statuses (instead of deleting orders), ignore + // orders already in the desired status, to make sure we process as many + // orders that need resetting as possible. $statuses = array_keys(commerce_order_statuses(array('cart' => TRUE))); if ($ignore_status && ($key = array_search($ignore_status, $statuses)) !== FALSE) { unset($statuses[$key]); diff --git a/commerce_cart_expiration.rules.inc b/commerce_cart_expiration.rules.inc index ad16684..6f02e46 100644 --- a/commerce_cart_expiration.rules.inc +++ b/commerce_cart_expiration.rules.inc @@ -88,7 +88,7 @@ function commerce_cart_expiration_rules_event_info() { ); $events['commerce_cart_expiration_reset_order'] = array( - 'label' => t('Before resetting status of an expired cart'), + 'label' => t('Before resetting the status of an expired cart'), 'group' => t('Commerce Cart'), 'variables' => array( 'commerce_order' => array(