[drupal-devel] [feature] Per-User Input-Format Preferences

jchris drupal-devel at drupal.org
Thu Jun 30 01:28:48 UTC 2005


Issue status update for http://drupal.org/node/26036

 Project:      Drupal
 Version:      4.6.1
 Component:    filter.module
 Category:     feature requests
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  jchris
 Updated by:   jchris
 Status:       patch
 Attachment:   http://drupal.org/files/issues/filter.module_9.patch (1.61 KB)

Here's a patch to filter.module that allows users to set their preferred
input format, when multiple formats are available.   A selection of
available formats is added to the user-account editing page.   The
user's selection is persistent and is used to initialize the
input-format selector on the node-editing pages.  This patch requires
an addition of an 'input_format' field to the {users} table:



   alter table users add input_format int(4) NOT NULL default '0';

I'm not 100% sure I did this correctly.  I'm no PHP coder.  Anyway, it
seems to work.


Patch file is attached.


Enjoy.




jchris




More information about the drupal-devel mailing list