diff options
Diffstat (limited to 'actions/tasks/delete.php')
-rw-r--r-- | actions/tasks/delete.php | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/actions/tasks/delete.php b/actions/tasks/delete.php deleted file mode 100644 index 9e15831f4..000000000 --- a/actions/tasks/delete.php +++ /dev/null @@ -1,32 +0,0 @@ -<?php -/** - * Remove a task - * - * @package ElggTasks - */ - -$guid = get_input('guid'); -$task = get_entity($guid); -if ($task) { - if ($task->canEdit()) { - $container = get_entity($task->container_guid); - $list = $task->list_guid; - - if ($task->delete()) { - system_message(elgg_echo('tasks:delete:success')); - if ($list) { - if ($list = get_entity($list)) { - forward($list->getURL()); - } - } - if (elgg_instanceof($container, 'group')) { - forward("tasks/group/$container->guid/all"); - } else { - forward("tasks/owner/$container->username"); - } - } - } -} - -register_error(elgg_echo('tasks:delete:failure')); -forward(REFERER); |