Mercurial > defr > drupal > core
comparison modules/profile/profile.module @ 7:fff6d4c8c043 6.3
Drupal 6.3
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:30:28 +0100 |
parents | 2427550111ae |
children | 3edae6ecd6c6 |
comparison
equal
deleted
inserted
replaced
6:2cfdc3c92142 | 7:fff6d4c8c043 |
---|---|
1 <?php | 1 <?php |
2 // $Id: profile.module,v 1.236.2.1 2008/04/09 21:11:49 goba Exp $ | 2 // $Id: profile.module,v 1.236.2.2 2008/04/28 09:13:46 dries Exp $ |
3 | 3 |
4 /** | 4 /** |
5 * @file | 5 * @file |
6 * Support for configurable user profiles. | 6 * Support for configurable user profiles. |
7 */ | 7 */ |
150 $fields[$record->name] = check_plain($record->title); | 150 $fields[$record->name] = check_plain($record->title); |
151 } | 151 } |
152 $fields['user_profile'] = t('Link to full user profile'); | 152 $fields['user_profile'] = t('Link to full user profile'); |
153 $form['profile_block_author_fields'] = array('#type' => 'checkboxes', | 153 $form['profile_block_author_fields'] = array('#type' => 'checkboxes', |
154 '#title' => t('Profile fields to display'), | 154 '#title' => t('Profile fields to display'), |
155 '#default_value' => variable_get('profile_block_author_fields', NULL), | 155 '#default_value' => variable_get('profile_block_author_fields', array()), |
156 '#options' => $fields, | 156 '#options' => $fields, |
157 '#description' => t('Select which profile fields you wish to display in the block. Only fields designated as public in the <a href="@profile-admin">profile field configuration</a> are available.', array('@profile-admin' => url('admin/user/profile'))), | 157 '#description' => t('Select which profile fields you wish to display in the block. Only fields designated as public in the <a href="@profile-admin">profile field configuration</a> are available.', array('@profile-admin' => url('admin/user/profile'))), |
158 ); | 158 ); |
159 return $form; | 159 return $form; |
160 } | 160 } |