summaryrefslogtreecommitdiff
path: root/modules/profile/profile.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-04-24 16:34:36 +0000
committerDries Buytaert <dries@buytaert.net>2005-04-24 16:34:36 +0000
commita76a1e1f3f5b641663ef3d00a752ec1cbd1d4ee9 (patch)
tree77a2538001468623dc122943f019daeb6fce9be1 /modules/profile/profile.module
parent79a5700c57e8ed86b4aab66022a448df978d2e3f (diff)
downloadbrdo-a76a1e1f3f5b641663ef3d00a752ec1cbd1d4ee9.tar.gz
brdo-a76a1e1f3f5b641663ef3d00a752ec1cbd1d4ee9.tar.bz2
- Patch 20910 by chx: centralize print theme page.
Diffstat (limited to 'modules/profile/profile.module')
-rw-r--r--modules/profile/profile.module10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index 1dde9a5ac..91a5896f5 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -177,7 +177,7 @@ function profile_browse() {
$output .= '</div>';
drupal_set_title($title);
- print theme('page', $output);
+ return $output;
}
else if ($name && !$field->id) {
drupal_not_found();
@@ -201,7 +201,7 @@ function profile_browse() {
$output .= theme('pager', NULL, 20);
drupal_set_title(t('user list'));
- print theme('page', $output);
+ return $output;
}
}
@@ -523,7 +523,7 @@ function profile_admin_add($type) {
}
drupal_set_title(t('Add new %type', array('%type' => _profile_field_types($type))));
- print theme('page', _profile_field_form($type, $data));
+ return _profile_field_form($type, $data);
}
/**
@@ -551,7 +551,7 @@ function profile_admin_edit($fid) {
}
drupal_set_title(t('Edit %type', array('%type' => $data['type'])));
- print theme('page', _profile_field_form($data['type'], $data));
+ return _profile_field_form($data['type'], $data);
}
/**
@@ -617,7 +617,7 @@ function profile_admin_overview() {
}
$output .= '</ul>';
- print theme('page', $output);
+ return $output;
}
function theme_profile_block($user, $fields = array()) {