retrieve("download_category", "*", " ORDER BY download_category_order ASC", true); foreach($data as $row) { $import[] = array( 'id' => $row['download_category_id'], 'table' => 'download_category', 'name' => $row['download_category_name'], 'url' => e107::url('download', 'category', $row, array('mode' => 'full' )), 'type' => LAN_PLUGIN_DOWNLOAD_NAME ); } $data = $sql->retrieve("download", "*", "download_class IN (" . $userclass_list . ") AND download_active != '0' ORDER BY download_datestamp ASC", true); foreach($data as $row) { $import[] = array( 'id' => $row['download_id'], 'table' => 'download', 'name' => $row['download_name'], 'url' => e107::url('download', 'item', $row, array('mode' => 'full' )), 'type' => LAN_PLUGIN_DOWNLOAD_NAME ); } return $import; } }