aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/tasks/list.php
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-17 12:00:58 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-17 12:00:58 -0300
commit228d3697bcd0218605be2e28131574cc85293a2e (patch)
tree6a59c627f6226bd2b3056b959acc9cc871eb1f8f /views/default/input/tasks/list.php
downloadelgg-228d3697bcd0218605be2e28131574cc85293a2e.tar.gz
elgg-228d3697bcd0218605be2e28131574cc85293a2e.tar.bz2
Squashed 'mod/tasks/' content from commit c9b1097
git-subtree-dir: mod/tasks git-subtree-split: c9b1097ce081d6893f9c939146208559c089dc15
Diffstat (limited to 'views/default/input/tasks/list.php')
-rw-r--r--views/default/input/tasks/list.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/views/default/input/tasks/list.php b/views/default/input/tasks/list.php
new file mode 100644
index 000000000..864f227ab
--- /dev/null
+++ b/views/default/input/tasks/list.php
@@ -0,0 +1,27 @@
+<?php
+
+$container_guid = get_input('container_guid', elgg_get_page_owner_guid());
+
+$entities = elgg_get_entities(array(
+ 'type' => 'object',
+ 'subtype' => 'tasklist_top',
+ 'container_guid' => $container_guid,
+ 'limit' => 0,
+));
+
+if ($entities) {
+ $options_values = array();
+ foreach ($entities as $entity) {
+ $options_values[$entity->guid] = $entity->title;
+ }
+} else {
+ $container_name = get_entity($container_guid)->name;
+ $options_values = array(0 => elgg_echo('tasks:owner', array($container_name)));
+}
+
+/*echo elgg_view('input/dropdown', array(
+ 'name' => $vars['name'],
+ 'options_values' => $options_values,
+ 'value' => $vars['value'],
+));*/
+echo elgg_view('input/hidden', array('name' => $vars['name'], 'value' => $vars['value']));