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