CMS  Version 3.9
reorder_links.inc File Reference

Go to the source code of this file.

Variables

 $tx = new DataTransaction()
 
 try
 

Variable Documentation

◆ $tx

$tx = new DataTransaction()

Definition at line 38 of file reorder_links.inc.

◆ try

try
Initial value:
{
foreach($_GET["link_id"] as $id => $sort_order)
{
checkNumeric($id);
checkNumeric($sort_order);
$link = new LinkRecord();
$link->joinTransaction($tx);
$link->filter = new InclusionFilter("link_id", "sort_order");
$link->load($id);
$link->sort_order = $sort_order;
$link->save();
}
$tx->commit()

Definition at line 40 of file reorder_links.inc.