10 $id = $plugin->getID();
19 var Plugin =
require(
'elgg/Plugin');
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');
elgg_view_exists($view, $viewtype= '', $recurse=true)
Returns whether the specified view exists.
$modules
Boot all the plugins and trigger the [init, system] hook.
if($guid==elgg_get_logged_in_user_guid()) $name
elgg require
Throw an error if the required package isn't present.
elgg_get_plugins($status= 'active', $site_guid=null)
Returns an ordered list of plugins.
define(function(require){var $=require('jquery');$(document).on('change', '#elgg-river-selector', function(){var url=window.location.href;if(window.location.search.length){url=url.substring(0, url.indexOf('?'));}url+= '?'+$(this).val();window.location.href=url;});})
Initiates page reload when river selector value changes core/river/filter.
if(!$collection_name) $id