| 1 |
<?php |
<?php |
| 2 |
// $Id: flag_friend.module,v 1.3.4.37 2009/09/15 17:34:11 sirkitree Exp $ |
// $Id: flag_friend.module,v 1.3.4.38 2009/09/15 17:48:44 sirkitree Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file flag.module |
* @file flag.module |
| 338 |
*/ |
*/ |
| 339 |
function flag_friend_message_form($action, $flag, $content_id, $token) { |
function flag_friend_message_form($action, $flag, $content_id, $token) { |
| 340 |
$form['current'] = array('#type' => 'value', '#value' => func_get_args()); |
$form['current'] = array('#type' => 'value', '#value' => func_get_args()); |
| 341 |
|
$name = db_result(db_query("SELECT name FROM {users} WHERE uid = %d", $content_id)); |
| 342 |
$form['flag_friend_message'] = array( |
$form['flag_friend_message'] = array( |
| 343 |
'#type' => 'textarea', |
'#type' => 'textarea', |
| 344 |
'#title' => t('Friend message (optional)'), |
'#title' => t('Send @name a message (optional)', array('@name' => $name)), |
| 345 |
'#description' => t('Enter a message to send to this user.'), |
'#description' => t('Enter a message to send to this user.'), |
| 346 |
'#cols' => 60, |
'#cols' => 60, |
| 347 |
'#rows' => 5, |
'#rows' => 5, |