function commerce_wishlist_order_is_wishlist in Commerce Wishlist 7.3
Returns TRUE if the order is a wish list.
Parameters
object $order: The order being considered.
Return value
bool Whether or not the order is a wish list.
3 calls to commerce_wishlist_order_is_wishlist()
- commerce_wishlist_commerce_cart_order_is_cart in ./
commerce_wishlist.module - Implements hook_commerce_cart_order_is_cart().
- commerce_wishlist_form_alter in ./
commerce_wishlist.module - Implements hook_form_alter().
- commerce_wishlist_menu_contextual_links_alter in ./
commerce_wishlist.module - Implements hook_contextual_links_view_alter().
File
- ./
commerce_wishlist.module, line 223 - Provides a wish list for use in Drupal Commerce.
Code
function commerce_wishlist_order_is_wishlist($order) {
return $order->status == 'wishlist';
}