Joomla function code reformatted.