aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/views/default/input
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-12-16 14:45:48 -0500
committerBrett Profitt <brett.profitt@gmail.com>2012-12-16 14:45:48 -0500
commite8330243e2c76c70b53aab15d1c5631760b7c412 (patch)
tree99c62a2ef8209e15a2253acccc4abdd035b21933 /mod/pages/views/default/input
parent4d360c11d14768c8a0229b8b2b1f02622f17c48a (diff)
downloadelgg-e8330243e2c76c70b53aab15d1c5631760b7c412.tar.gz
elgg-e8330243e2c76c70b53aab15d1c5631760b7c412.tar.bz2
Refs #1334. Move the page parent input to pages/input/parent.
Diffstat (limited to 'mod/pages/views/default/input')
-rw-r--r--mod/pages/views/default/input/parent.php37
1 files changed, 0 insertions, 37 deletions
diff --git a/mod/pages/views/default/input/parent.php b/mod/pages/views/default/input/parent.php
deleted file mode 100644
index f354129fe..000000000
--- a/mod/pages/views/default/input/parent.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-/**
- * Parent picker
- *
- * @uses $vars['value'] The current value, if any
- * @uses $vars['options_values']
- * @uses $vars['name'] The name of the input field
- * @uses $vars['entity'] Optional. The child entity (uses container_guid)
- */
-
-elgg_load_library('elgg:pages');
-
-if (empty($vars['entity'])) {
- $container = elgg_get_page_owner_entity();
-} else {
- $container = $vars['entity']->getContainerEntity();
-}
-
-$pages = pages_get_navigation_tree($container);
-$options = array();
-
-foreach ($pages as $page) {
- $spacing = "";
- for ($i = 0; $i < $page['depth']; $i++) {
- $spacing .= "--";
- }
- $options[$page['guid']] = "$spacing " . $page['title'];
-}
-
-$defaults = array(
- 'class' => 'elgg-input-parent-picker',
- 'options_values' => $options,
-);
-
-$vars = array_merge($defaults, $vars);
-
-echo elgg_view('input/dropdown', $vars);