function delete_many() { global $__in, $__out; $permission = new permission(); if ($permission->delete_many($__in['arr_ids'])) { return dispatcher::redirect(array("action" => "getall"), "deleted_successfully"); } else { // else if the array of ids are not deleted return dispatcher::redirect(array("action" => "getall")); } // end if the array of ids are deleted }