15 $widget_instance = preg_replace(
'/[^a-z0-9-]/i',
'-',
"elgg-widget-instance-{$widget->handler}");
23 $vars[
'show_edit'] =
false;
31 '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($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.
elgg_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
elgg_view_exists(string $view, string $viewtype= '', bool $recurse=true)
Returns whether the specified view exists.