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) { if (variable_get('muamba_allow_request_unavailable', FALSE) == TRUE) { $content .= theme('muamba_widget_icon', array( 'status' => MUAMBA_REQUESTED, 'id' => $node->nid, 'size' => $size, )); } else { $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, 'size' => $size, )); } else { $content .= theme('muamba_widget_icon', array( 'status' => MUAMBA_REQUESTED, 'id' => $node->nid, 'size' => $size, )); } } else { foreach ($transactions as $transaction) { $content .= theme('muamba_widget_owner', array( 'transaction' => $transaction, 'size' => $size, )); } } if (!empty($content)) { $output = '
'; } print $output;