18 define(
function (require) {
19 var Plugin = require(
'elgg/Plugin');
20 var
elgg = require(
'elgg');
29 plugin: require(<?= json_encode(
$name, JSON_UNESCAPED_SLASHES) ?>),
30 name: <?= json_encode(
$name, JSON_UNESCAPED_SLASHES) ?>
34 for (
i = 0;
i < modules.length;
i++) {
35 if (modules[
i].plugin instanceof Plugin) {
36 modules[
i].plugin._init();
38 console.error(
"Boot module boot/" + modules[
i].
name +
" did not return an instance of Plugin (from elgg/Plugin)");
42 elgg.trigger_hook(
'init',
'system');
if(! $collection_name) $id
if($guid==elgg_get_logged_in_user_guid()) $name
elgg_get_plugins($status='active', $site_guid=null)
Returns an ordered list of plugins.
$modules
Boot all the plugins and trigger the [init, system] hook.
elgg_view_exists($view, $viewtype='', $recurse=true)
Returns whether the specified view exists.