summaryrefslogtreecommitdiff
path: root/modules/profile/profile.module
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2007-03-27 05:13:55 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2007-03-27 05:13:55 +0000
commitf7440d4d73ec57219af232c135be3b2567dda45f (patch)
treea6b7d947eda1c7bfc2197bfb584f7b17143c97a5 /modules/profile/profile.module
parentf2ca29071fe33603cf22f1603a3e6a61ee9c0814 (diff)
downloadbrdo-f7440d4d73ec57219af232c135be3b2567dda45f.tar.gz
brdo-f7440d4d73ec57219af232c135be3b2567dda45f.tar.bz2
#130971: Kitchen sink (E_NOTICE compliance / Code style / Bugfix in book toc)
Diffstat (limited to 'modules/profile/profile.module')
-rw-r--r--modules/profile/profile.module11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index 4f70ded20..1a95e221b 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -129,6 +129,7 @@ function profile_block($op = 'list', $delta = 0, $edit = array()) {
}
else if ($op == 'view') {
if (user_access('access user profiles')) {
+ $output = '';
if ((arg(0) == 'node') && is_numeric(arg(1)) && (arg(2) == NULL)) {
$node = node_load(arg(1));
$account = user_load(array('uid' => $node->uid));
@@ -225,6 +226,16 @@ function profile_field_form($arg = NULL) {
$edit = array('name' => 'profile_');
$form['type'] = array('#type' => 'value', '#value' => $type);
}
+ $edit += array(
+ 'category' => '',
+ 'title' => '',
+ 'explanation' => '',
+ 'weight' => '',
+ 'page' => '',
+ 'autocomplete' => '',
+ 'required' => '',
+ 'register' => '',
+ );
$form['fields'] = array('#type' => 'fieldset',
'#title' => t('Field settings'),
);