15 $widget_instance = preg_replace(
'/[^a-z0-9-]/i',
'-',
"elgg-widget-instance-{$widget->handler}");
30 $vars[
'show_edit'] =
false;
40 'id' =>
"elgg-widget-{$widget->guid}",
elgg_view_module(string $type, string $title, string $body, array $vars=[])
Wrapper function for the module display pattern.
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.