comparison modules/profile/profile.module @ 19:3edae6ecd6c6 6.9

Drupal 6.9
author Franck Deroche <franck@defr.org>
date Thu, 15 Jan 2009 10:15:56 +0100
parents fff6d4c8c043
children
comparison
equal deleted inserted replaced
18:f5131a9cd9e5 19:3edae6ecd6c6
1 <?php 1 <?php
2 // $Id: profile.module,v 1.236.2.2 2008/04/28 09:13:46 dries Exp $ 2 // $Id: profile.module,v 1.236.2.3 2009/01/12 10:09:19 goba Exp $
3 3
4 /** 4 /**
5 * @file 5 * @file
6 * Support for configurable user profiles. 6 * Support for configurable user profiles.
7 */ 7 */
391 '#required' => $field->required, 391 '#required' => $field->required,
392 ); 392 );
393 break; 393 break;
394 case 'selection': 394 case 'selection':
395 $options = $field->required ? array() : array('--'); 395 $options = $field->required ? array() : array('--');
396 $lines = split("[,\n\r]", $field->options); 396 $lines = split("[\n\r]", $field->options);
397 foreach ($lines as $line) { 397 foreach ($lines as $line) {
398 if ($line = trim($line)) { 398 if ($line = trim($line)) {
399 $options[$line] = $line; 399 $options[$line] = $line;
400 } 400 }
401 } 401 }