summaryrefslogtreecommitdiff
path: root/modules/profile
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-13 00:33:05 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-13 00:33:05 +0000
commit8292bdd40ab3a9e70d44dad0e681d0222c1556cb (patch)
tree7e66d08bef9b38acd705e9e918129083435af3b8 /modules/profile
parent448640f1380c39ec3be39791d7efb449f150e1ed (diff)
downloadbrdo-8292bdd40ab3a9e70d44dad0e681d0222c1556cb.tar.gz
brdo-8292bdd40ab3a9e70d44dad0e681d0222c1556cb.tar.bz2
Re-commit of #242873 by pwolanin and bjaspan: Make drupal_set_title() check_plain() by default.
Diffstat (limited to 'modules/profile')
-rw-r--r--modules/profile/profile.admin.inc4
-rw-r--r--modules/profile/profile.pages.inc4
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/profile/profile.admin.inc b/modules/profile/profile.admin.inc
index 262254ee4..01f3bda32 100644
--- a/modules/profile/profile.admin.inc
+++ b/modules/profile/profile.admin.inc
@@ -175,7 +175,7 @@ function profile_field_form(&$form_state, $arg = NULL) {
drupal_not_found();
return;
}
- drupal_set_title(t('edit %title', array('%title' => $edit['title'])));
+ drupal_set_title(t('edit %title', array('%title' => $edit['title'])), PASS_THROUGH);
$form['fid'] = array('#type' => 'value',
'#value' => $fid,
);
@@ -193,7 +193,7 @@ function profile_field_form(&$form_state, $arg = NULL) {
return;
}
$type = $arg;
- drupal_set_title(t('add new %type', array('%type' => $types[$type])));
+ drupal_set_title(t('add new %type', array('%type' => $types[$type])), PASS_THROUGH);
$edit = array('name' => 'profile_');
$form['type'] = array('#type' => 'value', '#value' => $type);
}
diff --git a/modules/profile/profile.pages.inc b/modules/profile/profile.pages.inc
index 6b98c7c84..4c1e3678c 100644
--- a/modules/profile/profile.pages.inc
+++ b/modules/profile/profile.pages.inc
@@ -73,7 +73,7 @@ function profile_browse() {
$title = check_plain($field->page);
}
- drupal_set_title($title);
+ drupal_set_title($title, PASS_THROUGH);
return $output;
}
elseif ($name && !$field->fid) {
@@ -99,7 +99,7 @@ function profile_browse() {
$output = theme('profile_wrapper', $content);
$output .= theme('pager', NULL, 20);
- drupal_set_title(t('User list'));
+ drupal_set_title(t('User list'), PASS_THROUGH);
return $output;
}
}