Here's a Drupal 7 version of this module. I mainly ran the code through Coder. The only additional larger change was changing

$content = theme('moodle_courselist', $links);
to
$content = theme_moodle_courselist($links);

Incorporated are also the changes suggested at
* #1044972: Prefix is '' in my database and
* #626304: Encoding problem with foreign language Moodle course titles

Next thing will be to tackle #1358504: Work for moodle 2.0.

EDIT:
The table names in Moodle 2.0 seem to be unchanged. The module does also work with Moodle 2.0.

CommentFileSizeAuthor
moodle_courselist_7.x-dev.zip8.82 KBfrank ralf

Comments

goose2000’s picture

Thank You man, playing around with this today with D7 and M2.0.

agerson’s picture

Version: 6.x-1.2 » 7.x-1.x-dev
Status: Active » Needs review

A 7.x dev package based on this code should be up by tomorrow, but I do not have a D7/M2 setup to test with.

agerson’s picture

Status: Needs review » Closed (fixed)

I am closing this now that there is a dev version posted. If there are issues with it please open a new ticket.

agerson’s picture

Issue summary: View changes

Also tested successfully with Moodle 2.0.