aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-03-31 16:54:06 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-03-31 16:54:06 +0200
commit29878d9c267ef50eeb7aa5ef1b8725d2dfbb700f (patch)
treebdc5f83b89d3f73b6ec1b7f5e81c4bf16081ca2f
parentfe67c346e5ed9f65fe25dd9337b6424c04d09c4a (diff)
downloadvolse-hubzilla-29878d9c267ef50eeb7aa5ef1b8725d2dfbb700f.tar.gz
volse-hubzilla-29878d9c267ef50eeb7aa5ef1b8725d2dfbb700f.tar.bz2
volse-hubzilla-29878d9c267ef50eeb7aa5ef1b8725d2dfbb700f.zip
url \"/message/new/<id>\" preselect contact <id> in \"To\" select box
-rw-r--r--mod/message.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/message.php b/mod/message.php
index 9d30abd66..da35e1896 100644
--- a/mod/message.php
+++ b/mod/message.php
@@ -172,7 +172,9 @@ function message_content(&$a) {
'$linkurl' => t('Please enter a link URL:')
));
- $select = contact_select('messageto','message-to-select', false, 4, true);
+ $preselect = (isset($a->argv[2])?array($a->argv[2]):false);
+
+ $select = contact_select('messageto','message-to-select', $preselect, 4, true);
$tpl = load_view_file('view/prv_message.tpl');
$o .= replace_macros($tpl,array(
'$header' => t('Send Private Message'),