[drupal-devel] [feature] Multiple select functionality for profile module

Uwe Hermann drupal-devel at drupal.org
Sun Aug 28 00:04:16 UTC 2005


Issue status update for 
http://drupal.org/node/19356
Post a follow up: 
http://drupal.org/project/comments/add/19356

 Project:      Drupal
 Version:      cvs
 Component:    profile.module
 Category:     feature requests
 Priority:     normal
 Assigned to:  mathias
 Reported by:  mathias
 Updated by:   Uwe Hermann
-Status:       patch (code needs review)
+Status:       patch (code needs work)

Patch doesn't apply anymore.




Uwe Hermann



Previous comments:
------------------------------------------------------------------------

Thu, 24 Mar 2005 04:06:22 +0000 : mathias

Attachment: http://drupal.org/files/issues/profile-multiple-select.patch (7.48 KB)

This patch adds a 'multiple select' checkbox to the 'list selection'
field type interface, allowing users to select multiple items from a
single list. It looks the same as the 'multiple select' checkbox used
during vocabulary creation.


Field values are stored separately in the profile_values table and thus
don't need to be serialized, keeping search functionality in tact.


Note: this patch is not intended for 4.6.




------------------------------------------------------------------------

Thu, 24 Mar 2005 04:23:45 +0000 : mathias

Attachment: http://drupal.org/files/issues/profile-multiple-select_0.patch (10.22 KB)

Woops, full patch including database updates.




------------------------------------------------------------------------

Thu, 24 Mar 2005 18:33:05 +0000 : mathias

Attachment: http://drupal.org/files/issues/profile-multiple-select_1.patch (10.33 KB)

Fixing an uninitialized array.




------------------------------------------------------------------------

Sat, 16 Apr 2005 16:20:16 +0000 : mathias

Attachment: http://drupal.org/files/issues/profile-multiple-select_2.patch (11.73 KB)

Cleaned up and ready to go for HEAD.




------------------------------------------------------------------------

Tue, 10 May 2005 14:50:29 +0000 : nevets

In the function profile_form_profile() for the case 'selection' need to
initialize the array options.
It would look something like this
      case 'selection':
      	$options = array();
        $options[-1] = '--';
Without this if a catagory has more than one select list each list
builds apoun the previous one.







More information about the drupal-devel mailing list