26 'name' =>
'entity_guid',
35 'name' =>
'comment_guid',
38 $comment_label =
elgg_echo(
'generic_comments:edit');
42 $comment_label =
elgg_echo(
'generic_comments:add');
48 'name' =>
'generic_comment',
56 '#type' =>
'longtext',
57 '#label' => $comment_label,
58 'name' =>
'generic_comment',
61 'editor_type' =>
'simple',
67 'class' =>
'elgg-button-cancel mlm',
elgg_is_logged_in()
Returns whether or not the user is currently logged in.
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
canEdit(int $user_guid=0)
Can a user edit this entity?
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_set_form_footer(string $footer= '')
Sets form footer and defers its rendering until the form view and extensions have been rendered...
elgg_import_esm(string $name)
Helper functions for external files like css/js.
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.