function save_ordering($parent, $id_parent) { $order = $this->input->post('order'); if ($order !== FALSE) { // Clear the cache Cache()->clear_cache(); // Saves the new ordering $this->element_model->save_ordering($order); $this->callback = array(array('fn' => 'ION.updateContentTabs', 'args' => array($parent, $id_parent))); // Answer $this->success(lang('ionize_message_element_ordered')); } else { // Answer send $this->error(lang('ionize_message_operation_nok')); } }