]> git.mjollnir.org Git - moodle.git/commit
mod/resource: MDL-18691 allow custom resource types to specify their name in their...
authorfmarier <fmarier>
Fri, 27 Mar 2009 03:21:10 +0000 (03:21 +0000)
committerfmarier <fmarier>
Fri, 27 Mar 2009 03:21:10 +0000 (03:21 +0000)
commit13ca1e06b872b7111fca6d89329da82beaa5c729
tree146fcb20aa7c3085676b76a281bc677e4200c3a0
parent66c7d3731f7567e5fd277fd6cd4fafcdeb6111c2
mod/resource: MDL-18691 allow custom resource types to specify their name in their own lang directory

Before this change, the full name of the resource type had to be stored in the "resource" namespace (for example in /mod/resource/lang/en_utf8/resource.php).

Now it can be put in the "resource_foo" namespace:

e.g. in /mod/resource/type/foo/lang/en_utf8/resource_foo.php:

<?php
  $string['resourcetypefoo'] = 'Link to a Foo Bar document';
?>
mod/resource/lib.php
mod/resource/mod_form.php