diff --git a/classes/townsquaresupportinterface.php b/classes/townsquaresupportinterface.php index 50ad503..86ee091 100644 --- a/classes/townsquaresupportinterface.php +++ b/classes/townsquaresupportinterface.php @@ -31,6 +31,13 @@ */ namespace local_townsquaresupport; +/** + * Interface that need to be implemented + * + * @package local_townsquaresupport + * @copyright 2024 Tamaro Walter + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ interface townsquaresupportinterface { /** * Function to gather the events diff --git a/lang/en/local_townsquaresupport.php b/lang/en/local_townsquaresupport.php index 752826a..402f634 100644 --- a/lang/en/local_townsquaresupport.php +++ b/lang/en/local_townsquaresupport.php @@ -25,10 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -// Core strings for the installation. $string['pluginname'] = 'Townsquare support'; $string['plugintitle'] = 'Townsquare support plugin'; - -// Subplugin strings. $string['subplugintype_townsquareexpansion'] = 'Townsquare event expansion'; $string['subplugintype_townsquareexpansion_plural'] = 'Townsquare event expansions'; diff --git a/lib.php b/lib.php index a0b9a54..a2b3176 100644 --- a/lib.php +++ b/lib.php @@ -21,6 +21,16 @@ * * As every subplugin from townsquaresupport follows the same structure and has the get_event method located in the same * place, this function can access it directly. + * @package local_townsquaresupport + * @copyright 2024 Tamaro Walter + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +/** + * Core function of the townsquaresupport plugin. Retrieves all events from the subplugins and makes them available + * to the townsquare block. + * + * @return array */ function townsquaresupport_get_subplugin_events() {