function getTables() { $rows = JMMCommon::getTablesFromDB(); $tables = array(); for ($i = 0; $i < count($rows); $i++) { $tables[] = JHTML::_('select.option', $rows[$i], $rows[$i]); } return $tables; }