aboutsummaryrefslogtreecommitdiffstats
path: root/include/taxonomy.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-30 04:25:55 -0800
committerfriendica <info@friendica.com>2013-12-30 04:25:55 -0800
commit0dd7d936744cccfac4228cabecddc59ce05eb26c (patch)
tree9ad5a323161a4bce9a28efbbdaf079b6338100cd /include/taxonomy.php
parent6e81c332b78e5eac78db4f7a26fd3018c8ba5d0a (diff)
downloadvolse-hubzilla-0dd7d936744cccfac4228cabecddc59ce05eb26c.tar.gz
volse-hubzilla-0dd7d936744cccfac4228cabecddc59ce05eb26c.tar.bz2
volse-hubzilla-0dd7d936744cccfac4228cabecddc59ce05eb26c.zip
basic edit and delete for things
Diffstat (limited to 'include/taxonomy.php')
-rw-r--r--include/taxonomy.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/taxonomy.php b/include/taxonomy.php
index 67263100f..4f2b5e8fd 100644
--- a/include/taxonomy.php
+++ b/include/taxonomy.php
@@ -261,11 +261,12 @@ function obj_verbs() {
}
-function obj_verb_selector() {
+function obj_verb_selector($current = '') {
$verbs = obj_verbs();
$o .= '<select class="obj-verb-selector" name="verb" >';
foreach($verbs as $k => $v) {
- $o .= '<option value="' . urlencode($k) . '">' . $v[0] . '</option>';
+ $selected = (($k == $current) ? ' selected="selected" ' : '');
+ $o .= '<option value="' . urlencode($k) . '"' . $selected . '>' . $v[0] . '</option>';
}
$o .= '</select>';
return $o;