Skip to content

Commit

Permalink
codecleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
TamaroWalter committed Jun 13, 2024
1 parent 9ddf93c commit 054c3aa
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
7 changes: 7 additions & 0 deletions classes/townsquaresupportinterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions lang/en/local_townsquaresupport.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
10 changes: 10 additions & 0 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {

Expand Down

0 comments on commit 054c3aa

Please sign in to comment.