21 preg_replace(
'/[^a-z0-9-]/i',
'-',
"elgg-form-widgets-save-{$widget->handler}"),
23 'prevent_double_submit' =>
false,
31 'class' =>
'elgg-widget-edit',
32 'id' =>
"widget-edit-{$widget->guid}",
elgg_view_form(string $action, array $form_vars=[], array $body_vars=[])
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Thrown when entity can not be edited or container permissions do not allow it to be written...
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.