Elgg
Version 1.11
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
actions
widgets
move.php
Go to the documentation of this file.
1
<?php
9
$column
=
get_input
(
'column'
, 1);
10
$position
=
get_input
(
'position'
);
11
$widget
=
get_entity
(
get_input
(
'widget_guid'
));
12
if
(
$widget
) {
13
$layout_owner_guid =
$widget
->getContainerGUID();
14
elgg_set_page_owner_guid
($layout_owner_guid);
15
if
(
elgg_can_edit_widget_layout
(
$widget
->context)) {
16
$widget
->move(
$column
,
$position
);
17
forward
(
REFERER
);
18
}
19
}
20
21
register_error
(
elgg_echo
(
'widgets:move:failure'
));
22
forward
(
REFERER
);
get_input
get_input($variable, $default=null, $filter_result=true)
Get some input from variables passed submitted through GET or POST.
Definition:
input.php:27
$column
$column
Definition:
move.php:9
forward
elgg forward
Meant to mimic the php forward() function by simply redirecting the user to another page...
Definition:
elgglib.js:419
elgg_set_page_owner_guid
elgg_set_page_owner_guid($guid)
Set the guid of the entity that owns this page.
Definition:
pageowner.php:73
$position
$position
Definition:
move.php:10
elgg_echo
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition:
languages.php:21
elgg_can_edit_widget_layout
elgg_can_edit_widget_layout($context, $user_guid=0)
Can the user edit the widget layout.
Definition:
widgets.php:53
REFERER
const REFERER
Definition:
elgglib.php:1995
register_error
elgg register_error
Wrapper function for system_messages.
Definition:
elgglib.js:383
$widget
$widget
Definition:
move.php:11
get_entity
get_entity($guid)
Loads and returns an entity object from a guid.
Definition:
entities.php:382
Generated on Wed Dec 4 2024 00:00:47 for Elgg by
1.8.11