CMS  Version 3.9
reorder_contact_topics.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_contact_topics.inc.

◆ try

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

Definition at line 40 of file reorder_contact_topics.inc.