26 if ($disable_plugins === null) {
27 $disable_plugins =
true;
29 if ($disable_plugins) {
39 $plugin_categories =
$plugin->getManifest()->getCategories();
41 if (isset($plugin_categories)) {
42 foreach ($plugin_categories as $category) {
53 'list_type_toggle' =>
false,
54 'pagination' =>
false,
55 'display_reordering' =>
true,
81 'all' =>
elgg_echo(
'admin:plugins:category:all'),
82 'active' =>
elgg_echo(
'admin:plugins:category:active'),
83 'inactive' =>
elgg_echo(
'admin:plugins:category:inactive'),
84 'bundled' =>
elgg_echo(
'admin:plugins:category:bundled'),
85 'nonbundled' =>
elgg_echo(
'admin:plugins:category:nonbundled'),
96 'name' =>
'activate-all',
97 'href' =>
'action/admin/plugins/activate_all',
98 'text' =>
elgg_echo(
'admin:plugins:activate_all'),
99 'link_class' =>
'elgg-button elgg-button-submit elgg-plugins-toggle',
100 'data-desired-state' =>
'active',
103 'name' =>
'dactivate-all',
104 'href' =>
'action/admin/plugins/deactivate_all',
105 'text' =>
elgg_echo(
'admin:plugins:deactivate_all'),
106 'link_class' =>
'elgg-button elgg-button-submit elgg-plugins-toggle',
107 'data-desired-state' =>
'inactive',
113 [
'id' =>
'elgg-plugin-list'],
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
foreach($installed_plugins as $id=> $plugin) $add_context
elgg_add_admin_notice($id, $message)
Write a persistent message to the admin view.
$list_only
Elgg administration plugin screen.
elgg_format_element($tag_name, array $attributes=array(), $text= '', array $options=array())
Format an HTML element.
if($add_context) $plugins_list
elgg_pop_context()
Removes and returns the top context string from the stack.
elgg_in_context($context)
Check if this context exists anywhere in the stack.
elgg echo
Translates a string.
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
static getFriendlyCategory($category)
Returns a category's friendly name.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
foreach($installed_plugins as $id=> $plugin) $list_options
elgg_view_entity_list($entities, array $vars=array())
Returns a rendered list of entities with pagination.
elgg_get_plugins($status= 'active', $site_guid=null)
Returns an ordered list of plugins.
elgg_register_menu_item($menu_name, $menu_item)
Register an item for an Elgg menu.
elgg_push_context($context)
Push a context onto the top of the stack.
if(!$collection_name) $id
_elgg_generate_plugin_entities()
Discovers plugins in the plugins_path setting and creates entities for them if they don't exist...