. /** * URL external functions and service definitions. * * @package mod_url * @category external * @copyright 2015 Juan Leyva * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @since Moodle 3.0 */ defined('MOODLE_INTERNAL') || die; $functions = array( 'mod_url_view_url' => array( 'classname' => 'mod_url_external', 'methodname' => 'view_url', 'description' => 'Trigger the course module viewed event and update the module completion status.', 'type' => 'write', 'capabilities' => 'mod/url:view' ), );