. /** * Page external functions and service definitions. * * @package mod_page * @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_page_view_page' => array( 'classname' => 'mod_page_external', 'methodname' => 'view_page', 'description' => 'Simulate the view.php web interface page: trigger events, completion, etc...', 'type' => 'write', 'capabilities' => 'mod/page:view' ), );