38     return strcmp($a->name, $b->name);
 
   42 foreach (
$widgets as $column_widgets) {
 
   43     foreach ($column_widgets as 
$widget) {
 
   49     'class' => 
'elgg-text-help',
 
   57         $class[] = 
'elgg-state-unavailable';
 
   59         $class[] = 
'elgg-state-available';
 
   62     $class[] = $widget_type->multiple ? 
'elgg-widget-multiple' : 
'elgg-widget-single';
 
   64     $action = 
'<div class="elgg-widgets-add-actions">';
 
   65     if (!$widget_type->multiple) {
 
   70         'class' => [
'elgg-button', 
'elgg-button-submit', 
'elgg-size-small'],
 
   86     if ($widget_type->description) {
 
   91         'class' => 
'elgg-widgets-add-description',
 
  105     'name' => 
'widget_search',
 
  111     'class' => 
'elgg-widgets-add-panel',
 
foreach($widgets as $column_widgets) $result
 
elgg_set_context_stack(array $stack)
Set the entire context stack.
 
elgg_in_context(string $context)
Check if this context exists anywhere in the stack.
 
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
 
get_entity(int $guid)
Loads and returns an entity object from a guid.
 
elgg_import_esm(string $name)
Helper functions for external files like css/js.
 
elgg_entity_gatekeeper(int $guid, ?string $type=null, ?string $subtype=null, bool $validate_can_edit=false)
Can the viewer see this entity?
 
elgg_ajax_gatekeeper()
Require that the current request be an XHR.
 
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
 
elgg_view_module(string $type, string $title, string $body, array $vars=[])
Wrapper function for the module display pattern.
 
elgg_view(string $view, array $vars=[], string $viewtype='')
Return a parsed view.
 
elgg_format_element(string $tag_name, array $attributes=[], string $text='', array $options=[])
Format an HTML element.
 
elgg_generate_action_url(string $action, array $query=[], bool $add_csrf_tokens=true)
Generate an action URL.
 
elgg_set_page_owner_guid(int $guid)
Set the guid of the entity that owns this page.