Updates register plugin to new pages system, bumps version
parent
36e81104f1
commit
2f4b0b7aef
|
@ -1,10 +1,12 @@
|
|||
<?php
|
||||
|
||||
// Add to allowed URLs
|
||||
register_hook('filter_allowed_urls', function($urls) {
|
||||
$urls[] = 'register';
|
||||
return $urls;
|
||||
});
|
||||
// Register plugin bootstrap
|
||||
// (here we add any plugin autoloader, if needed)
|
||||
|
||||
// List here all the controllers in "/controllers/" that we need as pages
|
||||
$GLOBALS['plugin_controllers']['register'] = [
|
||||
'register'
|
||||
];
|
||||
|
||||
// Add to publicly accessible pages
|
||||
register_hook('filter_public_pages', function($pages) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Registration Plugin",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"enabled": true,
|
||||
"description": "Provides registration functionality as a plugin."
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue