26 'pagination' =>
false,
27 'display_reordering' =>
true,
43 if (!$plugin->isValid()) {
44 if ($plugin->isActive()) {
48 $plugin->deactivate();
51 }
catch (\
Elgg\Exceptions\PluginException $e) {
63 echo
elgg_view(
'admin/plugins/categories', [
69 'name' =>
'activate-all',
71 'text' =>
elgg_echo(
'admin:plugins:activate_all'),
72 'link_class' =>
'elgg-button elgg-button-submit elgg-plugins-toggle',
73 'data-desired-state' =>
'active',
76 'name' =>
'deactivate-all',
78 'text' =>
elgg_echo(
'admin:plugins:deactivate_all'),
79 'link_class' =>
'elgg-button elgg-button-submit elgg-plugins-toggle',
80 'data-desired-state' =>
'inactive',
elgg_get_plugins(string $status= 'active')
Returns an ordered list of plugins.
elgg_generate_action_url(string $action, array $query=[], bool $add_csrf_tokens=true)
Generate an action URL.
if($list_only) $categories
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
elgg_strtolower()
Wrapper function for mb_strtolower().
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_pop_context()
Removes and returns the top context string from the stack.
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
elgg_import_esm(string $name)
Helper functions for external files like css/js.
elgg_view_entity_list(array $entities, array $vars=[])
Returns a rendered list of entities with pagination.
elgg_push_context(string $context)
Push a context onto the top of the stack.
elgg_add_admin_notice(string $id, string $message)
Write a persistent message to the admin view.
_elgg_services()
Get the global service provider.
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
elgg_register_menu_item(string $menu_name, array|\ElggMenuItem $menu_item)
Elgg navigation library Functions for managing menus and other navigational elements.