From f7440d4d73ec57219af232c135be3b2567dda45f Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Tue, 27 Mar 2007 05:13:55 +0000 Subject: #130971: Kitchen sink (E_NOTICE compliance / Code style / Bugfix in book toc) --- modules/profile/profile.module | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'modules/profile/profile.module') 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'), ); -- cgit v1.2.3