/** * Moves the order of a record * @param integer The unique id of record * @param integer The increment to reorder by */ function orderPlugin($uid, $inc, $option) { global $_CB_framework, $_CB_database; $row = new moscomprofilerPlugin($_CB_database); $row->load((int) $uid); $row->move($inc, "type='{$row->type}' AND ordering > -10000 AND ordering < 10000 "); cbRedirect($_CB_framework->backendUrl("index.php?option={$option}&task=showPlugins")); }