uid != $user->uid) { if (!user_is_logged_in()) { print t('You have to be logged in to be able to ask for this item.'); return; } elseif (!$available && $transactions['uid'] != $user->uid) { $content .= theme('image', array( 'path' => $path .'/images/unavailable.png', 'alt' => t('Item unavailable'), 'title' => t('Item unavailable'), ) ); } elseif ($transactions['uid'] == $user->uid) { $content .= theme('muamba_widget_requester', array('transaction' => $transactions)); } else { $content .= theme('muamba_widget_icon', array('status' => MUAMBA_REQUESTED, 'id' => $node->nid)); } } else { foreach ($transactions as $transaction) { $content .= theme('muamba_widget_owner', array('transaction' => $transaction)); } } if (!empty($content)) { $output = '
'; } print $output;