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

moshe weitzman drupal-devel at drupal.org
Thu Jun 30 01:40: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:   moshe weitzman
 Status:       patch

i like the convenience of this ... for this sort of pref, i prefer that
we simply remember what the user chose as an input format the last
time. that the most natural way to use this. who wants to go totheir
profile page? i propose to do away with the UI on the profile form but
i don't feel strongly about that.




moshe weitzman



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

June 29, 2005 - 20:28 : jchris

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.







More information about the drupal-devel mailing list