25 'name' =>
'entity_guid',
32 'value' =>
elgg_echo(
'trash:restore:container:choose'),
37 'name' =>
'destination_container_guid',
40 'group' =>
elgg_echo(
'trash:restore:container:group'),
45 '#type' =>
'grouppicker',
46 '#label' =>
elgg_echo(
'trash:restore:group'),
47 '#help' =>
elgg_echo(
'trash:restore:group:help'),
48 'name' =>
'destination_container_guid',
50 'match_target' =>
$owner->guid,
58 'name' =>
'destination_container_guid',
65 'value' =>
elgg_echo(
'trash:restore:container:owner'),
69 'name' =>
'destination_container_guid',
78 'confirm' =>
elgg_echo(
'restoreandmoveconfirm'),
elgg_call(int $flags, Closure $closure)
Calls a callable autowiring the arguments using public DI services and applying logic based on flags...
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
if(empty($guid)||empty($destination_container_guid)) $entity
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
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...
get_entity(int $guid)
Loads and returns an entity object from a guid.
Thrown when entity can not be edited or container permissions do not allow it to be written...
const ELGG_SHOW_DELETED_ENTITIES
Aggregate action for saving settings.
elgg_gatekeeper()
Used at the top of a page to mark it as logged in users only.
Thrown when entity can not be found.