MDL-29624 Media embedding system, part 3: resource module (and URL, lesson)
authorsam marshall <s.marshall@open.ac.uk>
Tue, 13 Dec 2011 17:21:06 +0000 (17:21 +0000)
committersam marshall <s.marshall@open.ac.uk>
Wed, 9 May 2012 17:29:31 +0000 (18:29 +0100)
commit8b7d95b6256cbcd912701db09a732880957a785b
tree28fe6bfb43f55138a01c4c3d89ed68d70dc4223d
parentf4e7ba5ea8fbaa97fb2aa0bceef9d9a2271cdc88
MDL-29624 Media embedding system, part 3: resource module (and URL, lesson)

This change makes the resource module use the new API when it embeds media
files (audio/video/Flash), and removes the resourcelib library functions
which were previously used for this.

The old API is still used for embedding non-media files such as PDFs and
HTML.

The URL and Lesson module both used copy/paste duplicates of a section of
resource module code which called the removed functions. I have changed
these too. As a bonus this significantly reduces the duplication involved.
lib/resourcelib.php
mod/lesson/locallib.php
mod/resource/locallib.php
mod/url/locallib.php