summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--buddylist.module14
1 files changed, 7 insertions, 7 deletions
diff --git a/buddylist.module b/buddylist.module
index 79d014b..a814627 100644
--- a/buddylist.module
+++ b/buddylist.module
@@ -142,11 +142,11 @@ function buddylist_user($type, &$edit, &$thisuser, $category = NULL) {
// is generated.
$_SESSION['buddylist_op_destination'] = $_SERVER['HTTP_REFERER'];
if (@in_array($thisuser->uid, array_keys(buddylist_get_buddies($user->uid))) && user_access('maintain buddy list')) {
- $actions[] = l(t('Remove <em>%name</em> from my buddy list', array('%name' => $thisuser->name)), 'buddy/delete/' . $thisuser->uid);
+ $actions[] = l(t('Remove %name from my buddy list', array('%name' => theme('placeholder', $thisuser->name))), 'buddy/delete/' . $thisuser->uid, NULL, NULL, NULL, FALSE, TRUE);
}
else {
if ($user->uid != $thisuser->uid && user_access('maintain buddy list')) {
- $actions[] = l(t('Add <em>%name</em> to my buddy list', array('%name' => $thisuser->name)), 'buddy/add/' . $thisuser->uid);
+ $actions[] = l(t('Add %name to my buddy list', array('%name' => theme('placeholder', $thisuser->name))), 'buddy/add/' . $thisuser->uid, NULL, NULL, NULL, FALSE, TRUE);
}
}
if ($actions) {
@@ -391,9 +391,9 @@ function buddylist_add($id) {
// letting them know you added them as a buddy
// buddylist.received set back to 0 when user logs in along with being informed of new buddy
- drupal_set_message(t('<em>%username</em> has been added to your buddy list', array('%username' => '<em>'. $user_to_add->name .'</em>')));
+ drupal_set_message(t('%username has been added to your buddy list', array('%username' => theme('placeholder', $user_to_add->name))));
} else {
- drupal_set_message(t('<em>%username</em> is already on your buddylist', array('%username' => '<em>'. $user_to_add->name .'</em>')));
+ drupal_set_message(t('%username is already on your buddylist', array('%username' => theme('placeholder', $user_to_add->name))));
}
}
@@ -401,17 +401,17 @@ function buddylist_remove($id) {
global $user;
db_query('DELETE FROM {buddylist} WHERE uid = %d AND buddy = %d' , $user->uid , $id);
$thisuser = user_load(array('uid' => $id));
- drupal_set_message(t('<em>%username</a> removed from buddylist',array('%username' => '<em>'. $thisuser->name . '</em>') ));
+ drupal_set_message(t('%username removed from buddylist',array('%username' => theme('placeholder', $thisuser->name )) ));
}
function buddylist_cancel_add($id) {
$thisuser = user_load(array('uid' => $id));
- drupal_set_message(t('User %name was NOT added to your buddylist.', array('%name' => '<em>'. $thisuser->name .'</em>')));
+ drupal_set_message(t('User %name was NOT added to your buddylist.', array('%name' => theme('placeholder', $thisuser->name))));
}
function buddylist_cancel_remove($id) {
$thisuser = user_load(array('uid' => $id));
- drupal_set_message(t('User %name was NOT removed to your buddylist.', array('%name' => '<em>'. $thisuser->name . '</em>')));
+ drupal_set_message(t('User %name was NOT removed to your buddylist.', array('%name' => theme('placehodler', $thisuser->name))));
}
/**