Browse Source

url \"/message/new/<id>\" preselect contact <id> in \"To\" select box

pull/1/head
Fabio Comuni 10 years ago
parent
commit
29878d9c26
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      mod/message.php

+ 3
- 1
mod/message.php View File

@ -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'),


Loading…
Cancel
Save