diff options
Diffstat (limited to 'modules/profile/profile.module')
-rw-r--r-- | modules/profile/profile.module | 11 |
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'), ); |