. /** * Chat external functions and service definitions. * * @package mod_chat * @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_chat_login_user' => array( 'classname' => 'mod_chat_external', 'methodname' => 'login_user', 'description' => 'Log a user into a chat room in the given chat.', 'type' => 'write', 'capabilities' => 'mod/chat:chat' ), );