summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-14 02:13:22 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-01-14 02:13:22 -0500
commit21d87778ae76fd73eded304d213bdeb47b5052ee (patch)
treefa79b255ff433969e6c9eb06b474eb3470065ef9 /lib/util.php
parent0f7e8585cdf1a18d0fe9f1b2e3290a579f202296 (diff)
Move message form to its own module
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php41
1 files changed, 0 insertions, 41 deletions
diff --git a/lib/util.php b/lib/util.php
index 811c7cdb0..f9ba73d6f 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -1674,47 +1674,6 @@ function common_keyize($str)
return $str;
}
-function common_message_form($content, $user, $to)
-{
-
- common_element_start('form', array('id' => 'message_form',
- 'method' => 'post',
- 'action' => common_local_url('newmessage')));
-
- $mutual_users = $user->mutuallySubscribedUsers();
-
- $mutual = array();
-
- while ($mutual_users->fetch()) {
- if ($mutual_users->id != $user->id) {
- $mutual[$mutual_users->id] = $mutual_users->nickname;
- }
- }
-
- $mutual_users->free();
- unset($mutual_users);
-
- common_dropdown('to', _('To'), $mutual, null, false, $to->id);
-
- common_element_start('p');
-
- common_element('textarea', array('id' => 'message_content',
- 'cols' => 60,
- 'rows' => 3,
- 'name' => 'content'),
- ($content) ? $content : '');
-
- common_element('input', array('id' => 'message_send',
- 'name' => 'message_send',
- 'type' => 'submit',
- 'value' => _('Send')));
-
- common_hidden('token', common_session_token());
-
- common_element_end('p');
- common_element_end('form');
-}
-
function common_memcache()
{
static $cache = null;