Fixed some text formatting issues. 7.x-1.0-alpha5
authorMark Ferree
Wed, 23 Jan 2013 05:19:05 +0000 (21:19 -0800)
committerMark Ferree
Wed, 23 Jan 2013 05:19:05 +0000 (21:19 -0800)
user_relationship_defaults/user_relationship_defaults.module
user_relationships.admin.inc
user_relationships_ui/user_relationships_ui.pages.inc

index 8e95b58..fbf2c23 100644 (file)
@@ -270,7 +270,7 @@ function user_relationship_defaults_user_relationships_types_list_alter(&$page)
   $default_rows = array();
   foreach ($defaults as $default) {
     $default_rows[] = array(
-      user_relationships_type_get_name($default->relationship_type),
+      check_plain(user_relationships_type_get_name($default->relationship_type)),
       theme('username', array('account' => $default->user)),
       l(t('delete'), "admin/config/people/relationships/defaults/{$default->rdid}/delete"),
     );
index 8834d39..2f7bb77 100644 (file)
@@ -450,7 +450,7 @@ function user_relationships_admin_types_list_page() {
     }
 
     $rows[$relationship->rtid] = array(
-      user_relationships_type_get_name($relationship),
+      check_plain(user_relationships_type_get_name($relationship)),
       ($relationship->is_oneway ? ($relationship->is_reciprocal ? t('Reciprocal') : t('One-way')) : t('Mutual')),
       $approval,
       l(t('edit'),     "admin/config/people/relationships/{$relationship->rtid}/edit") . ' | ' .
index fb75771..8a0514e 100644 (file)
@@ -174,7 +174,7 @@ function user_relationships_ui_get_table_row($relationship, $account) {
 
   $row = array(
     theme('username', array('account' => $this_user)),
-    user_relationships_type_get_name($relationship, FALSE, $relationship->is_oneway && $this_user_str == 'requester'),
+    check_plain(user_relationships_type_get_name($relationship, FALSE, $relationship->is_oneway && $this_user_str == 'requester')),
   );
 
   $permission = $account->uid == $relationship->requestee_id ? 'request' : 'approve';