aboutsummaryrefslogtreecommitdiff
path: root/pages/tasks/edit_task.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/tasks/edit_task.php')
-rw-r--r--pages/tasks/edit_task.php62
1 files changed, 0 insertions, 62 deletions
diff --git a/pages/tasks/edit_task.php b/pages/tasks/edit_task.php
deleted file mode 100644
index 646418761..000000000
--- a/pages/tasks/edit_task.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-/**
- * Edit a task
- *
- * @package ElggTasks
- */
-
-gatekeeper();
-
-$task_guid = (int)get_input('guid');
-$task = get_entity($task_guid);
-if (!$task) {
-
-}
-
-$container = $task->getContainerEntity();
-if (!$container) {
-
-}
-
-$list = get_entity($task->list_guid);
-if (!$list) {
-
-}
-
-elgg_set_page_owner_guid($container->getGUID());
-
-if (elgg_instanceof($container, 'user')) {
- elgg_push_breadcrumb($container->name, "tasks/owner/$container->username/");
-} elseif (elgg_instanceof($container, 'group')) {
- elgg_push_breadcrumb($container->name, "tasks/group/$container->guid/all");
-}
-if($list) {
- elgg_push_breadcrumb($list->title, "tasks/view/$list->guid/$list->title");
-}
-elgg_push_breadcrumb($task->title, $task->getURL());
-elgg_push_breadcrumb(elgg_echo('edit'));
-
-$title = elgg_echo("tasks:edit");
-
-if ($task->canEdit()) {
- $vars = array(
- 'guid' => $task_guid,
- 'container_guid' => $container->guid,
- );
-
- foreach(array_keys(elgg_get_config('tasks')) as $variable){
- $vars[$variable] = $task->$variable;
- }
-
- $content = elgg_view_form('tasks/edit', array(), $vars);
-} else {
- $content = elgg_echo("tasks:noaccess");
-}
-
-$body = elgg_view_layout('content', array(
- 'filter' => '',
- 'content' => $content,
- 'title' => $title,
-));
-
-echo elgg_view_page($title, $body);