summaryrefslogtreecommitdiff
path: root/modules/profile.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/profile.module')
-rw-r--r--modules/profile.module12
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/profile.module b/modules/profile.module
index df6e9fa2e..37bb21556 100644
--- a/modules/profile.module
+++ b/modules/profile.module
@@ -113,7 +113,8 @@ function profile_browse() {
}
$output .= '</div>';
- print theme('page', $output, $title);
+ drupal_set_title($title);
+ print theme('page', $output);
}
else if ($name && !$field->id) {
drupal_not_found();
@@ -136,7 +137,8 @@ function profile_browse() {
$output .= '</div>';
$output .= theme('pager', NULL, 20);
- print theme('page', $output, t('user list'));
+ drupal_set_title(t('user list'));
+ print theme('page', $output);
}
}
@@ -457,7 +459,8 @@ function profile_admin_add($type) {
$data = array('name' => 'profile_');
}
- print theme('page', _profile_field_form($type, $data), t('Add new %type', array('%type' => _profile_field_types($type))));
+ drupal_set_title(t('Add new %type', array('%type' => _profile_field_types($type))));
+ print theme('page', _profile_field_form($type, $data));
}
/**
@@ -484,7 +487,8 @@ function profile_admin_edit($fid) {
$data = db_fetch_array(db_query('SELECT * FROM {profile_fields} WHERE fid = %d', $fid));
}
- print theme('page', _profile_field_form($data['type'], $data), t('Edit %type', array('%type' => $data['type'])));
+ drupal_set_title(t('Edit %type', array('%type' => $data['type'])));
+ print theme('page', _profile_field_form($data['type'], $data));
}
/**