Module not returning echoing or printing variable I'm writing a module to change a user's shopping cart order ID based on a stored value from their profile, which cannot be edited from the users.

In the hook call to commerce_cart_order_id I tried the following code, but it doesn't change the order ID. Printing $orderidentifier with krumo() shows 1; if I change return $orderidentifier; with return 1;  my cart changes just as I'd expect it to.

global $user;
$user_full = user_load($user-&gt;uid);
$orderidentifier = $user_full-&gt;field_currentcartorder['und'][0]['value'];
return $orderidentifier;


Can anyone tell me what I'm missing?
fixed it I had to add an $orderidentifier = intval($orderidentifier); to convert it to an integer so the hook I was calling could understand it