June 2017
Beginner to intermediate
368 pages
8h 31m
English
Let us start by considering the plugin configuration. We will need to allow a Moodle administrator to configure the following:
There is very little flexibility in the design of an authentication plugin configuration page so, at this stage, rather than creating a wireframe drawing, we can simply go ahead and write the code. The configuration page is defined in /config.html. Firstly, there will be a fragment of PHP to set any defaults:
<?php // Set to defaults if undefined if (!isset($config->wordpress_host)) { $config->wordpress_host = ''; } if (!isset($config->client_key)) { $config->client_key = ''; } if (!isset($config->client_secret)) ...Read now
Unlock full access