37 public function moveContentElement($sourceElement, $destinationColumn, $destinationElement) {
39 $afterElementUid = -1;
44 $moveElementUid = (int)
$uid;
48 $afterElementUid = (int)
$uid;
51 $afterElementUid = -1;
57 $targetColumn = (int)$column;
58 $targetPage = (int)$page;
61 if ($afterElementUid === -1) {
62 $action[
'cmd'][
'tt_content'][$moveElementUid][
'move'] = $targetPage;
64 $action[
'cmd'][
'tt_content'][$moveElementUid][
'move'] = -$afterElementUid;
67 $action[
'data'][
'tt_content'][$moveElementUid][
'colPos'] = $targetColumn;
75 'sourceElement' => $sourceElement,
76 'destinationColumn' => $destinationColumn,
77 'destinationElement' => $destinationElement,
82 $tce->stripslashes_values = 0;
83 $tce->start($action[
'data'], $action[
'cmd']);
84 $tce->process_datamap();
85 $tce->process_cmdmap();
87 return array(
'success' => TRUE);
static devLog($msg, $extKey, $severity=0, $dataVar=FALSE)
static canBeInterpretedAsInteger($var)
static makeInstance($className)
static trimExplode($delim, $string, $removeEmptyValues=FALSE, $limit=0)