Inject data into a Joomla module position
<?php
// Inject data from your component into the right module position
JFactory::getDocument()->setBuffer($data, 'modules', 'right');
// Note: Data will not be shown unless there are "real" modules present in position right